class
BACnet::NPDU::Source
- BACnet::NPDU::Source
- BinData
- Reference
- Object
Defined in:
bacnet/npdu.crConstant Summary
-
AFTER_DESERIALIZE =
[] of Nil -
BEFORE_SERIALIZE =
[] of Nil -
ENDIAN =
["big"] -
KLASS_NAME =
[BACnet::NPDU::Source] -
PARTS =
[{type: "basic", name: network, cls: UInt16, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: address_length, cls: UInt8, onlyif: nil, verify: nil, value: -> do address.size end, endian: nil}, {type: "bytes", name: address, cls: Slice(UInt8), onlyif: nil, verify: nil, length: -> do address_length end, value: nil}] 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. - #address : Bytes
- #address=(address : Bytes)
- #address_length : UInt8
- #address_length=(address_length : UInt8)
- #network : UInt16
- #network=(network : UInt16)
-
#parent
Group fields might need access to data in the parent
-
#parent=(parent : BACnet::NPDU | Nil)
Group fields might need access to data in the parent
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.