TLV::Header::Vendor
Inherits BinData < Reference < Object
Vendor Profile - 2 bytes vendor + 2 bytes profile + 2 bytes tag
Constants
AFTER_DESERIALIZE = [] of Nil
Vendor Profile - 2 bytes vendor + 2 bytes profile + 2 bytes tag
BEFORE_SERIALIZE = [] of Nil
Vendor Profile - 2 bytes vendor + 2 bytes profile + 2 bytes tag
ENDIAN = ["little"]
Vendor Profile - 2 bytes vendor + 2 bytes profile + 2 bytes tag
KLASS_NAME = [TLV::Header::Vendor]
Vendor Profile - 2 bytes vendor + 2 bytes profile + 2 bytes tag
PARTS = [{type: "basic", name: vendor_id, cls: UInt16, onlyif: nil, verify: nil, value: nil, endian: nil}, {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
Vendor Profile - 2 bytes vendor + 2 bytes profile + 2 bytes tag
REMAINING = [] of Nil
Vendor Profile - 2 bytes vendor + 2 bytes profile + 2 bytes tag
Class methods
bit_fields
Vendor Profile - 2 bytes vendor + 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)
vendor_id
vendor_id=(vendor_id : UInt16)