class

BinaryParser

Inherits Reference < Object

Class methods

from_io(io : IO, format : IO::ByteFormat)
Source

Instance methods

load(filename : String)
Source
load(io : IO)
Source
save(filename : String)
Source
to_io(io : IO, format : IO::ByteFormat)
Source
to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source
write(io : IO)
Source

Macros

array(name, opt)
Source
char(name)
Source
int16(name)
Source
int32(name)
Source
int8(name)
Source
string(name, opt = {count: -1})
Source
type(name, klass)
Source
uint16(name)
Source
uint32(name)
Source
uint8(name)
Source