CoAP::Option
Constants
ENDIAN = ["big"]
KLASS_NAME = [CoAP::Option]
PARTS = [{type: "bitfield", name: 0, cls: CoAP::Option,
onlyif: nil, verify: nil}, {type: "basic", name: delta_8bit, cls: UInt8, onlyif: -> do
op_delta == 13_u8
end,
verify: nil, value: nil}, {type: "basic", name: delta_16bit, cls: UInt16, onlyif: -> do
op_delta == 14_u8
end,
verify: nil, value: nil}, {type: "basic", name: length_8bit, cls: UInt8, onlyif: -> do
op_length == 13_u8
end, verify: nil, value: nil}, {type: "basic", name: length_16bit, cls: UInt16, onlyif: -> do
op_length == 14_u8
end,
verify: nil, value: nil}, {type: "bytes", name: data, cls: Bytes, onlyif: nil, verify: nil, length: -> do
op_length == 15_u8 ? 0 : option_length
end,
value: nil}] of Nil
REMAINING = [] of Nil
Class methods
bit_fields
SourceInstance methods
__format__
Sourcecontent_type
Sourcedata
data=(data : Bytes)
delta_16bit
delta_16bit=(delta_16bit : UInt16)
delta_8bit
delta_8bit=(delta_8bit : UInt8)
end_of_options?
Sourcelength_16bit
length_16bit=(length_16bit : UInt16)
length_8bit
length_8bit=(length_8bit : UInt8)
op_delta
Options
op_delta=(op_delta : UInt8)
Options
op_length
Options
op_length=(op_length : UInt8)
Options
option_delta
Sourceoption_length
Sourcestring
Sourcetype(type : Options)
SourceMacros
co_ap_option(name, onlyif = nil, verify = nil, value = nil)
Source