class
Matter::Schema::BitmapSchema(T)
- Matter::Schema::BitmapSchema(T)
- Reference
- Object
Overview
BitmapSchema provides encoding and decoding for bitmaps with named fields at specific bit positions
Defined in:
matter/schema/bitmap_schema.crConstructors
Instance Method Summary
-
#decode(bitmap : Int32 | Int64) : Hash(String, Bool | Int32)
Decode an integer bitmap to a named hash of field values
-
#encode(values : Hash(String, Bool | Int32 | Int64)) : Int64
Encode a named hash of field values to an integer bitmap
Constructor Detail
Instance Method Detail
def decode(bitmap : Int32 | Int64) : Hash(String, Bool | Int32)
#
Decode an integer bitmap to a named hash of field values
def encode(values : Hash(String, Bool | Int32 | Int64)) : Int64
#
Encode a named hash of field values to an integer bitmap