class MQTT::V3::Header
- MQTT::V3::Header
- BinData
- Reference
- Object
Overview
Performs binary encoding and decoding of headers
Direct Known Subclasses
- MQTT::V3::Ack
- MQTT::V3::Connack
- MQTT::V3::Connect
- MQTT::V3::EmptyPacket
- MQTT::V3::Publish
- MQTT::V3::Suback
- MQTT::V3::Subscribe
- MQTT::V3::Unsubscribe
Defined in:
mqtt/v3/header.crConstant Summary
-
ENDIAN =
["big"]
-
Performs binary encoding and decoding of headers
-
KLASS_NAME =
[MQTT::V3::Header]
-
Performs binary encoding and decoding of headers
-
PARTS =
[{type: "bitfield", name: 0, cls: MQTT::V3::Header, onlyif: nil, verify: nil}, {type: "basic", name: variable_length1, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: variable_length2, cls: UInt8, onlyif: -> do (variable_length1 & 128) > 0 end, verify: nil, value: nil, endian: nil}, {type: "basic", name: variable_length3, cls: UInt8, onlyif: -> do (variable_length2 & 128) > 0 end, verify: nil, value: nil, endian: nil}, {type: "basic", name: variable_length4, cls: UInt8, onlyif: -> do (variable_length3 & 128) > 0 end, verify: nil, value: nil, endian: nil}] of Nil
-
Performs binary encoding and decoding of headers
-
REMAINING =
[] of Nil
-
Performs binary encoding and decoding of headers
Class Method Summary
-
.bit_fields
Performs binary encoding and decoding of headers
Macro Summary
-
mqtt_v3_header(name, onlyif = nil, verify = nil, value = nil)
Performs binary encoding and decoding of headers
Instance Method Summary
- #__format__ : IO::ByteFormat
- #duplicate : Bool
- #duplicate=(duplicate : UInt8)
- #duplicate=(value : Bool)
- #id : MQTT::RequestType
- #id=(id : UInt8)
- #id=(value : MQTT::RequestType)
- #packet_length : UInt32
- #packet_length=(size : UInt32) : UInt32
- #qos : MQTT::QoS
- #qos=(qos : UInt8)
- #qos=(value : MQTT::QoS)
- #qos?
- #retain : Bool
- #retain=(retain : UInt8)
- #retain=(value : Bool)
- #variable_length1 : UInt8
- #variable_length1=(variable_length1 : UInt8)
- #variable_length2 : UInt8
- #variable_length2=(variable_length2 : UInt8)
- #variable_length3 : UInt8
- #variable_length3=(variable_length3 : UInt8)
- #variable_length4 : UInt8
- #variable_length4=(variable_length4 : UInt8)
Class Method Detail
Macro Detail
Performs binary encoding and decoding of headers