The OpenD Programming Language

BitField

BitField is used by bitwise.

Members

Aliases

__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()

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