class BinaryParser

Direct Known Subclasses

Defined in:

binary_parser.cr

Class Method Summary

Instance Method Summary

Macro Summary

Class Method Detail

def self.from_io(io : IO, format : IO::ByteFormat) #

[View source]

Instance Method Detail

def load(filename : String) #

[View source]
def load(io : IO) #

[View source]
def save(filename : String) #

[View source]
def to_io(io : IO, format : IO::ByteFormat) #

[View source]
def to_s(io : IO) #
Description copied from class Reference

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>

[View source]
def write(io : IO) #

[View source]

Macro Detail

macro array(name, opt) #

[View source]
macro char(name) #

[View source]
macro int16(name) #

[View source]
macro int32(name) #

[View source]
macro int8(name) #

[View source]
macro string(name, opt = {count: -1}) #

[View source]
macro type(name, klass) #

[View source]
macro uint16(name) #

[View source]
macro uint32(name) #

[View source]
macro uint8(name) #

[View source]