class
BACnet::Object
- BACnet::Object
- BinData
- Reference
- Object
Defined in:
bacnet/object.crConstant Summary
-
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 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. - #closing?
- #context_specific : Bool
- #context_specific=(context_specific : UInt8)
- #context_specific=(value : Bool)
- #data : Bytes
- #data=(data : Bytes)
- #ext_tag : UInt8
- #ext_tag=(ext_tag : UInt8)
-
#inspect(io : IO) : Nil
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
- #is_null?
- #length
- #length=(size : Int)
- #objects : Array(Object | Objects)
- #opening?
-
#set_character_string(value : String, encoding : UInt8 = 0_u8)
a character string is the string data prefixed with its encoding, see
STRING_ENCODING. - #set_value(value, context_specific : Bool = false, tag : Int | Nil = nil)
- #short_tag : UInt8
- #short_tag=(short_tag : UInt8)
- #tag
- #tag=(value : Int)
- #to_bit_string
- #to_bool
- #to_date
- #to_encoded_string
- #to_f32
- #to_f64
- #to_i
- #to_i16
- #to_i32
- #to_i64
- #to_i8
- #to_object_id
- #to_property_id
- #to_s(io)
- #to_string
- #to_time
- #to_u16
- #to_u32
- #to_u64
- #to_u8
- #uint16_length : UInt16
- #uint16_length=(uint16_length : UInt16)
- #uint32_length : UInt32
- #uint32_length=(uint32_length : UInt32)
-
#uint3_length : UInt8
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
- #uint8_length=(uint8_length : UInt8)
-
#value
ameba:disable Metrics/CyclomaticComplexity
-
#value=(var)
ameba:disable Metrics/CyclomaticComplexity
Class Method Detail
Instance Method Detail
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.
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>
a character string is the string data prefixed with its encoding, see
STRING_ENCODING. NOTE:: #set_value with a string builds an octet string