core.internal.gc.bits

Contains a bitfield used by the GC.

struct GCBits

Types 1

structGCBits
Fields
(wordtype.sizeof * 8) BITS_PER_WORD
(wordtype.sizeof == 8 ? 6 : 5) BITS_SHIFT
(BITS_PER_WORD - 1) BITS_MASK
cast(wordtype) 0 BITS_0
cast(wordtype) 1 BITS_1
cast(wordtype) 2 BITS_2
wordtype * data
size_t nbits
Methods
void Dtor(bool share = false) nothrow
void alloc(size_t nbits, bool share = false) nothrow
wordtype test(size_t i) const scope @trusted pure nothrow @nogc
int set(size_t i) scope @trusted pure nothrow @nogc
int clear(size_t i) scope @trusted pure nothrow @nogc
size_t setLocked(size_t i) scope @trusted pure nothrow @nogc
void clearWords(size_t firstWord, size_t lastWord) nothrow
void setWords(size_t firstWord, size_t lastWord) nothrow
void copyWords(size_t firstWord, size_t lastWord, const(wordtype) * source) nothrow
void copyWordsShifted(size_t firstWord, size_t cntWords, size_t firstOff, const(wordtype) * source) nothrow
void copyRange(size_t target, size_t len, const(wordtype) * source) nothrow
void copyRangeZ(size_t target, size_t len, const(wordtype) * source) nothrow
void copyRangeRepeating(size_t target, size_t destlen, const(wordtype) * source, size_t sourcelen) nothrow
void setRange(size_t target, size_t len) nothrow
void setRangeZ(size_t target, size_t len) nothrow
void clrRange(size_t target, size_t len) nothrow
void clrRangeZ(size_t target, size_t len) nothrow
void zero() nothrow
void setAll() nothrow
void copy(GCBits * f) nothrow
size_t nwords() @property const pure nothrow
Nested Templates
testAndSet(bool locked)