bitwise

Bitwise slice over an integral slice.

Return Value

Type: auto

A bitwise slice.

Examples

size_t[10] data;
auto bits = data[].bitwise;
assert(bits.length == data.length * size_t.sizeof * 8);
bits[111] = true;
assert(bits[111]);

bits.popFront;
assert(bits[110]);
bits[] = true;
bits[110] = false;
bits = bits[10 .. $];
assert(bits[100] == false);

Meta