class Matter::Schema::ByteArrayBitmapSchema(T)

Overview

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

Defined in:

matter/schema/bitmap_schema.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(fields : Hash(String, BitFlag | BitField)) #

[View source]

Instance Method Detail

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

Decode a byte array to a named hash of field values


[View source]
def encode(values : Hash(String, Bool | Int32 | Int64)) : Bytes #

Encode a named hash of field values to a byte array


[View source]