TLV::Header::Common
Inherits BinData < Reference < Object
Common Profile - 2 bytes profile + 2 bytes tag
Constants
AFTER_DESERIALIZE = [] of Nil
Common Profile - 2 bytes profile + 2 bytes tag
BEFORE_SERIALIZE = [] of Nil
Common Profile - 2 bytes profile + 2 bytes tag
ENDIAN = ["little"]
Common Profile - 2 bytes profile + 2 bytes tag
KLASS_NAME = [TLV::Header::Common]
Common Profile - 2 bytes profile + 2 bytes tag
PARTS = [{type: "basic", name: profile_id, cls: UInt16, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: tag_id, cls: UInt16, onlyif: nil, verify: nil, value: nil, endian: nil}] of Nil
Common Profile - 2 bytes profile + 2 bytes tag
REMAINING = [] of Nil
Common Profile - 2 bytes profile + 2 bytes tag
Class methods
bit_fields
Common Profile - 2 bytes profile + 2 bytes tag
Instance methods
__format__
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.
Group fields might need access to data in the parent
profile_id
profile_id=(profile_id : UInt16)
tag_id
tag_id=(tag_id : UInt16)