BACnet::Object
Constants
AFTER_DESERIALIZE = [] of Nil
BEFORE_SERIALIZE = [] of Nil
ENDIAN = ["big"]
KLASS_NAME = [BACnet::Object]
PARTS = [{type: "bitfield", name: 3, cls: BACnet::Object,
onlyif: nil, verify: nil, endian: IO::ByteFormat::BigEndian}, {type: "basic", name: ext_tag, cls: UInt8, onlyif: -> do
short_tag == 15_u8
end,
verify: nil, value: nil, endian: nil}, {type: "basic", name: uint8_length, cls: UInt8, onlyif: -> do
uint3_length == 5_u8
end,
verify: nil, value: nil, endian: nil}, {type: "basic", name: uint16_length, cls: UInt16, onlyif: -> do
(uint3_length == 5_u8) && (uint8_length == 254_u8)
end,
verify: nil, value: nil, endian: nil}, {type: "basic", name: uint32_length, cls: UInt32, onlyif: -> do
(uint3_length == 5_u8) && (uint8_length == 255_u8)
end,
verify: nil, value: nil, endian: nil}, {type: "bytes", name: data, cls: Slice(UInt8), onlyif: nil, verify: nil, length: -> do
length
end,
value: nil}] of Nil
REMAINING = [] of Nil
STRING_ENCODING = {0_u8 => "UTF-8", 1_u8 => "UTF-16BE", 2_u8 => "EUC-JISX0213", 3_u8 => "UCS-4BE", 4_u8 => "UCS-2BE", 5_u8 => "ISO8859-1"}
Class methods
bit_fields
SourceInstance 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.
closing?
Sourcecontext_specific
Sourcecontext_specific=(context_specific : UInt8)
data
data=(data : Bytes)
ext_tag
ext_tag=(ext_tag : UInt8)
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
is_null?
Sourcelength
Sourceobjects
Sourceopening?
Sourcea character string is the string data prefixed with its encoding, see
STRING_ENCODING. NOTE:: set_value with a string builds an octet string
short_tag
short_tag=(short_tag : UInt8)
tag
Sourceto_bit_string
Sourceto_bool
Sourceto_date
Sourceto_encoded_string
Sourceto_f32
Sourceto_f64
Sourceto_i
Sourceto_i16
Sourceto_i32
Sourceto_i64
Sourceto_i8
Sourceto_object_id
Sourceto_property_id
Sourceto_s(io)
Sourceto_string
Sourceto_time
Sourceto_u16
Sourceto_u32
Sourceto_u64
Sourceto_u8
Sourceuint16_length
uint16_length=(uint16_length : UInt16)
uint32_length
uint32_length=(uint32_length : UInt32)
uint3_length
if context specific then the length will be set to 6
uint3_length=(uint3_length : UInt8)
if context specific then the length will be set to 6
uint8_length
uint8_length=(uint8_length : UInt8)