bits/bit_struct
library
Classes
BitData
BitData
contain bits for setters - Cannot be extension type
allows pass by pointer
use by BitsMap. BitsStuct, BoolMap, etc.
BitField
BitField
Key for BitStruct and BitFieldMap
as mixin, applicable to enum
BitFieldMap <K extends BitField >
BitFieldMap
BitIndexField
BitIndexField /// Special case: single-bit field addressed by index.
Bitmask
Bitmask
BitsInitializer <K extends BitField >
BitsInitializer
compile time const definition using map literal
example = BitsInitializer({
EnumType.name1: 2,
EnumType.name2: 3,
});
BitsMap <K , V >
BitsMap
Common interface for [BitFieldMap, BoolMap .
Enforce concrete keys as base.
A special case of FixedMap , all values retrieve from a Bits object
Map operators implemented by subclass depending on V type, int or bool.
BitStructBase <T extends BitStructBase <T , K > , K extends BitField >
BitStructBase — abstract base for user-defined bit struct subtypes.
Analogue of StructBase for the bit domain.
BoolMap <K extends dynamic >
BoolMap
ConstBitFieldMap <K extends BitField >
ConstBits
ConstBoolMap <K extends dynamic >
MutableBitFieldMap <K extends BitField >
MutableBits
base for Map or Struct
MutableBoolMap <K extends dynamic >
Extension Types
BitForm
BitForm — zero-cost wrapper over a List<K> field schema.
Analogue of StructForm for the bit domain.
BitForm<K>(K.values).cast(ConstBits(raw as Bits));
Bitmasks
Bits
Bits - Bitwise operations on int
function of a single number, object methods over top level math functions
BitStruct
BitStruct — zero-cost keyed view over a BitData object.