class PlaceOS::Edge::Protocol::Binary
- PlaceOS::Edge::Protocol::Binary
- BinData
- Reference
- Object
Overview
Binary messages
Defined in:
placeos-edge/protocol.crConstant Summary
-
AFTER_DESERIALIZE =
[] of Nil
-
Binary messages
-
BEFORE_SERIALIZE =
[] of Nil
-
Binary messages
-
ENDIAN =
["big"]
-
Binary messages
-
KLASS_NAME =
[PlaceOS::Edge::Protocol::Binary]
-
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 Method Summary
-
.bit_fields
Binary messages
- .from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::SystemEndian)
- .from_slice(bytes : Slice, format : IO::ByteFormat = IO::ByteFormat::SystemEndian)
Macro Summary
-
asn1_ber(name, onlyif = nil, verify = nil, value = nil)
Binary messages
-
asn1_ber_extended_identifier(name, onlyif = nil, verify = nil, value = nil)
Binary messages
-
asn1_ber_identifier(name, onlyif = nil, verify = nil, value = nil)
Binary messages
-
asn1_ber_length(name, onlyif = nil, verify = nil, value = nil)
Binary messages
-
ber(name, onlyif = nil, verify = nil, value = nil)
Binary messages
-
place_os_edge_protocol_binary(name, onlyif = nil, verify = nil, value = nil)
Binary messages
Instance Method Summary
- #__format__ : IO::ByteFormat
- #binary : IO
- #binary? : IO | Nil
- #key : String
- #key=(key : String)
- #length : Int32
- #length=(length : Int32)
- #path : String
- #path=(path : String)
- #path? : String | Nil
- #sequence_id : UInt64
- #sequence_id=(sequence_id : UInt64)
- #status : Status
- #status=(status : Status)
- #success
- #to_slice
- #write(io : IO)
Class Method Detail
Macro Detail
Binary messages
Binary messages
Binary messages
Binary messages