class

PlaceOS::Edge::Protocol::Binary

Inherits BinData < Reference < Object

Binary messages

Constants

AFTER_DESERIALIZE = [] of Nil

Binary messages

BEFORE_SERIALIZE = [] of Nil

Binary messages

ENDIAN = ["big"]

Binary messages

Binary messages

PARTS = [{type: "basic", name: sequence_id, cls: UInt64, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "enum", name: status, cls: typeof(Status::Success.value), onlyif: nil, verify: nil, value: nil, encoding: nil, enum_type: PlaceOS::Edge::Protocol::Binary::Status}, {type: "basic", name: length, cls: Int32, onlyif: nil, verify: nil, value: -> do key.bytesize end, endian: nil}, {type: "string", name: key, cls: String, onlyif: nil, verify: nil, length: -> do length end, value: nil, encoding: nil}] of Nil

Binary messages

REMAINING = [] of Nil

Binary messages

Class methods

bit_fields

Binary messages

Source

Instance methods

__format__
Source
binary
Source
binary?
Source
key
key=(key : String)
length
length=(length : Int32)
path
Source
path=(path : String)
Source
path?
Source
sequence_id
sequence_id=(sequence_id : UInt64)
status
status=(status : Status)
success
Source
to_slice
Source
write(io : IO)
Source

Macros

asn1_ber(name, onlyif = nil, verify = nil, value = nil)

Binary messages

Source
asn1_ber_extended_identifier(name, onlyif = nil, verify = nil, value = nil)

Binary messages

Source
asn1_ber_identifier(name, onlyif = nil, verify = nil, value = nil)

Binary messages

Source
asn1_ber_length(name, onlyif = nil, verify = nil, value = nil)

Binary messages

Source
ber(name, onlyif = nil, verify = nil, value = nil)

Binary messages

Source
place_os_edge_protocol_binary(name, onlyif = nil, verify = nil, value = nil)

Binary messages

Source

Nested types