class

Matter::Schema::BitmapSchema(T)

Inherits Reference < Object

BitmapSchema provides encoding and decoding for bitmaps with named fields at specific bit positions

Constructors

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

Instance methods

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

Decode an integer bitmap to a named hash of field values

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

Encode a named hash of field values to an integer bitmap

Source