class Homekit::TLV::Atom
- Homekit::TLV::Atom
- BinData
- Reference
- Object
Defined in:
homekit-tlv/atom.crConstant Summary
-
ENDIAN =
["little"]
-
KLASS_NAME =
[Homekit::TLV::Atom]
-
PARTS =
[{type: "basic", name: type_id, cls: UInt8, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: length, cls: UInt8, onlyif: nil, verify: nil, value: -> do raw_data.size.to_u8 end}, {type: "bytes", name: raw_data, cls: Bytes, onlyif: nil, verify: nil, length: -> do length end, value: nil}] of Nil
-
REMAINING =
[] of Nil
Class Method Summary
Instance Method Summary
- #__format__ : IO::ByteFormat
- #acknowledgment? : Bool
- #data
- #error? : TLV::PairError | Nil
- #identifier
- #ignore? : Bool
- #known_type? : TLV::Type | Nil
- #length : UInt8
- #length=(length : UInt8)
- #method
- #next_fragment : Atom | Nil
- #next_fragment=(next_fragment : Atom | Nil)
- #permissions
- #raw_data : Bytes
- #raw_data=(raw_data : Bytes)
- #separator? : Bool
- #to_f
- #to_f32
- #to_f64
- #to_i
- #to_i16
- #to_i32
- #to_i64
- #to_i8
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #to_u16
- #to_u32
- #to_u64
- #to_u8
- #type : TLV::Type
-
#type_id : UInt8
we don't use enum_field so we can ignore new types that we don't know of yet
-
#type_id=(type_id : UInt8)
we don't use enum_field so we can ignore new types that we don't know of yet
Macro Summary
Class Method Detail
Instance Method Detail
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.
def type_id=(type_id : UInt8)
#
we don't use enum_field so we can ignore new types that we don't know of yet