util.bits

Fixed size bit array.

struct Bits(uint length);

Fixed size bit array.

Used to pack many booleans together. No dynamic storage at all is used - all data is stored directly in the struct.
By default, all bits are set to 0.

ulong[(length + 63) / 64] data_;

Data storage, in 64bit chunks.

const pure nothrow bool opIndex(const size_t index);

Get bit at specified index.

pure nothrow void opIndexAssign(const bool value, const size_t index);

Set bit at specified index.

pure nothrow void zeroOut();

Set all bits to zero.