class BinData
- BinData
- Reference
- Object
Direct Known Subclasses
Defined in:
bindata.crClass Method Summary
Instance Method Summary
- #__format__ : IO::ByteFormat
- #read(io : IO) : IO
- #to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::SystemEndian)
- #write(io : IO) : IO
Macro Summary
- __build_methods__
- array(name, length, onlyif = nil, value = nil)
- bit_field(onlyif = nil, &block)
- bits(size, name, value = nil, default = nil)
- bool(name, default = false)
- custom(name, onlyif = nil, value = nil)
- endian(format)
- enum_bits(size, name)
- enum_field(size, name, onlyif = nil, value = nil)
-
group(name, onlyif = nil, value = nil, &block)
}# Encapsulates a bunch of fields by creating a nested BinData class
- int128(name, onlyif = nil, value = nil, default = nil)
- int16(name, onlyif = nil, value = nil, default = nil)
- int32(name, onlyif = nil, value = nil, default = nil)
- int64(name, onlyif = nil, value = nil, default = nil)
- int8(name, onlyif = nil, value = nil, default = nil)
- string(name, onlyif = nil, length = nil, value = nil, encoding = nil, default = nil)
- uint128(name, onlyif = nil, value = nil, default = nil)
- uint16(name, onlyif = nil, value = nil, default = nil)
- uint32(name, onlyif = nil, value = nil, default = nil)
- uint64(name, onlyif = nil, value = nil, default = nil)
- uint8(name, onlyif = nil, value = nil, default = nil)
Class Method Detail
Instance Method Detail
Macro Detail
}# Encapsulates a bunch of fields by creating a nested BinData class