BitField

BitField is used by bitwise.

Members

Aliases

E
alias E = I
Undocumented in source.
__map
alias __map(alias fun) = BitField__map!(Field, I, fun)

optimization for bitwise operations

Functions

__vmap
auto __vmap(Fun fun)

optimization for bitwise operations

assumeFieldsHaveZeroShift
auto assumeFieldsHaveZeroShift()

Defined if Field has member assumeFieldsHaveZeroShift.

lightConst
auto lightConst()
lightImmutable
auto lightImmutable()
opIndex
bool opIndex(size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
bool opIndexAssign(bool value, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

shift
enum shift;
Undocumented in source.

Variables

_field
Field _field;

Examples

import mir.ndslice.iterator: FieldIterator;
ushort[10] data;
auto f = FieldIterator!(BitField!(ushort*))(0, BitField!(ushort*)(data.ptr));
f[123] = true;
f++;
assert(f[122]);

Meta