/////////////////////////////////////////////////////////////////////////////
BitField
Key for BitStruct and BitFieldMap
as mixin, applicable to enum
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
A Bit-field is a class data member with explicit size, in bits.
https://en.cppreference.com/w/cpp/language/bit_field
https://learn.microsoft.com/en-us/cpp/c-language/c-bit-fields?view=msvc-170
A collection of Bit-fields, in a primitive type variable, e.g int,
should be known as Bit-Fields, or Bits Field, Bit Struct, Bit-Field Struct
/////////////////////////////////////////////////////////////////////////////
- Implemented types
- Implementers
Constructors
- BitField()
Properties
Methods
-
getIn(
covariant BitStruct< BitField> struct) → int -
Read this field's value from
struct.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setIn(
covariant BitStruct< BitField> struct, int value) → void -
Write
valueinto this field ofstruct.override -
testAccess(
covariant BitStruct< BitField> struct) → bool -
Whether this field is present/valid for
struct. Defaults totrue(fixed-schema). Override for optional/sparse fields.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited