class
MQTT::V3::SubTopic
- MQTT::V3::SubTopic
- BinData
- Reference
- Object
Defined in:
mqtt/v3/subscribe.crConstant Summary
-
AFTER_DESERIALIZE =
[] of Nil -
BEFORE_SERIALIZE =
[] of Nil -
ENDIAN =
["big"] -
KLASS_NAME =
[MQTT::V3::SubTopic] -
PARTS =
[{type: "basic", name: filter_size, cls: UInt16, onlyif: nil, verify: nil, value: -> do filter.bytesize end, endian: nil}, {type: "string", name: filter, cls: String, onlyif: nil, verify: nil, length: -> do filter_size end, value: nil, encoding: nil}, {type: "enum", name: qos, cls: typeof(QoS::FireAndForget.value), onlyif: nil, verify: nil, value: nil, encoding: nil, enum_type: MQTT::QoS}] of Nil -
REMAINING =
[] of Nil
Class Method Summary
Instance Method Summary
-
#__format__ : IO::ByteFormat
A
grouporbit_fieldcaptures the endianness at its declaration point, so declaringendianafter one would silently leave it system-endian. - #bytesize
- #filter : String
- #filter=(filter : String)
- #filter_size : UInt16
- #filter_size=(filter_size : UInt16)
- #qos : QoS
- #qos=(qos : QoS)
Class Method Detail
Instance Method Detail
def __format__ : IO::ByteFormat
#
A group or bit_field captures the endianness at its declaration point, so
declaring endian after one would silently leave it system-endian. Fail loudly.