class

Matter::Schema::ByteArrayBitmapSchema(T)

Inherits Reference < Object

ByteArrayBitmapSchema works with byte arrays instead of integers Used for bitmaps that span multiple bytes

Constructors

new(fields : Hash(String, BitFlag | BitField))
Source

Instance methods

decode(bitmap : Bytes) : Hash(String, Bool | Int32)

Decode a byte array to a named hash of field values

Source
encode(values : Hash(String, Bool | Int32 | Int64)) : Bytes

Encode a named hash of field values to a byte array

Source