struct Matter::Cluster::LabelStruct

Overview

Shared struct for FixedLabel (0x0040) and UserLabel (0x0041) clusters.

Included Modules

Defined in:

matter/cluster/definitions/label_struct.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(label : String, value : String) #

[View source]
def self.new(any : TLV::Any) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) #

[View source]
def self.from_slice(bytes : Bytes) #

[View source]
def self.from_tlv(any : TLV::Any) #

[View source]
def self.from_tlv(data : Bytes) #

[View source]

Instance Method Detail

def label : String #

[View source]
def label=(label : String) #

[View source]
def to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil #

[View source]
def to_slice : Bytes #

[View source]
def to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any #

[View source]
def value : String #

[View source]
def value=(value : String) #

[View source]