abstract class BinData
- BinData
- Reference
- Object
Direct Known Subclasses
Defined in:
bindata.crConstant Summary
-
BIT_PARTS =
[{more => {UInt8, nil}, tag_number => {UInt8, nil}}, {tag_class => {UInt8, nil}, constructed => {UInt8, nil}, tag_number => {UInt8, nil}}, {long => {UInt8, nil}, length_indicator => {UInt8, nil}}] of Nil
-
CUSTOM_TYPES =
[BER, ASN1::BER, ASN1::BER::ExtendedIdentifier, ASN1::BER::Identifier, ASN1::BER::Length] of BinData.class
-
INDEX =
[2]
-
RESERVED_NAMES =
["inherited", "included", "extended", "method_missing", "method_added", "finished"]
Class Method Summary
- .bit_fields
- .from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::SystemEndian)
- .from_slice(bytes : Slice, format : IO::ByteFormat = IO::ByteFormat::SystemEndian)
Instance Method Summary
- #__format__ : IO::ByteFormat
- #read(io : IO) : IO
- #to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::SystemEndian)
- #to_slice
- #write(io : IO)
Macro Summary
- __build_methods__
- array(name, length, onlyif = nil, verify = nil, value = nil)
- bit_field(onlyif = nil, verify = nil, &block)
- bits(size, name, value = nil, default = nil)
- bool(name, default = false)
- bytes(name, length, onlyif = nil, verify = nil, value = nil, default = nil)
- custom(name, onlyif = nil, verify = nil, value = nil)
- endian(format)
- enum_bits(size, name)
- enum_field(size, name, onlyif = nil, verify = nil, value = nil)
- float32(name, onlyif = nil, verify = nil, value = nil, default = nil)
- float32be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- float32le(name, onlyif = nil, verify = nil, value = nil, default = nil)
- float64(name, onlyif = nil, verify = nil, value = nil, default = nil)
- float64be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- float64le(name, onlyif = nil, verify = nil, value = nil, default = nil)
-
group(name, onlyif = nil, verify = nil, value = nil, &block)
}# Encapsulates a bunch of fields by creating a nested BinData class
- int128(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int128be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int128le(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int16(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int16be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int16le(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int32(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int32be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int32le(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int64(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int64be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int64le(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int8(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int8be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- int8le(name, onlyif = nil, verify = nil, value = nil, default = nil)
- remaining_bytes(name, onlyif = nil, verify = nil, default = nil)
- string(name, onlyif = nil, verify = nil, length = nil, value = nil, encoding = nil, default = nil)
- uint128(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint128be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint128le(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint16(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint16be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint16le(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint32(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint32be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint32le(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint64(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint64be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint64le(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint8(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint8be(name, onlyif = nil, verify = nil, value = nil, default = nil)
- uint8le(name, onlyif = nil, verify = nil, value = nil, default = nil)
- variable_array(name, read_next, onlyif = nil, verify = nil, value = nil)
Class Method Detail
Instance Method Detail
Macro Detail
}# Encapsulates a bunch of fields by creating a nested BinData class
macro string(name, onlyif = nil, verify = nil, length = nil, value = nil, encoding = nil, default = nil)
#