abstract class BinData
- BinData
- Reference
- Object
Direct Known Subclasses
Defined in:
bindata.crbindata/exceptions.cr
Constant 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)
Macro Summary
-
__add_enum_field(name, cls, onlyif, verify, value, encoding, enum_type)
this needs to be split out so we can resolve the enum base_type
- __build_methods__
- after_deserialize(&block)
-
array(name, length, onlyif = nil, verify = nil, value = nil)
DEPRECATED Use
#field
instead - before_serialize(&block)
- 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)
DEPRECATED Use
#field
instead -
custom(name, onlyif = nil, verify = nil, value = nil)
DEPRECATED Use
#field
instead - endian(format)
-
enum_bits(size, name)
DEPRECATED Use
#bits
instead -
enum_field(size, name, onlyif = nil, verify = nil, value = nil)
DEPRECATED Use
#field
instead - field(type_declaration, onlyif = nil, verify = nil, value = nil, length = nil, read_next = nil, encoding = nil, endian = nil)
-
float32(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
float32be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
float32le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
float64(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
float64be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
float64le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
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)
DEPRECATED Use
#field
instead -
int128be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int128le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int16(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int16be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int16le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int32(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int32be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int32le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int64(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int64be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int64le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int8(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int8be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
int8le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead - remaining_bytes(name, onlyif = nil, verify = nil, default = nil)
-
string(name, onlyif = nil, verify = nil, length = nil, value = nil, encoding = nil, default = nil)
DEPRECATED Use
#field
instead -
uint128(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint128be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint128le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint16(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint16be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint16le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint32(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint32be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint32le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint64(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint64be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint64le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint8(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint8be(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
uint8le(name, onlyif = nil, verify = nil, value = nil, default = nil)
DEPRECATED Use
#field
instead -
variable_array(name, read_next, onlyif = nil, verify = nil, value = nil)
DEPRECATED Use
#field
instead
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)
Class Method Detail
Macro Detail
this needs to be split out so we can resolve the enum base_type
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
}# Encapsulates a bunch of fields by creating a nested BinData class
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead
DEPRECATED Use #field
instead