- Parameters:
size
: size_INFO- Returns:
- Number of cells required for the bit array.
- Parameters:
value
: value_INFO- Returns:
- The true array slot for this value.
- Parameters:
value
: value_INFO- Returns:
- The bit in the array slot to use.
- Parameters:
Bit:array[]
: Bit:array[]_INFOslot
: slot_INFO- Returns:
- State of the provided slot, 0 on fail.
- Remarks: Unsafe but faster for when you're sure you're within range.
- Parameters:
Bit:array[]
: Bit:array[]_INFOslot
: slot_INFOsize
: size_INFO- Returns:
- State of the provided slot, 0 on fail.
- native Bit_Get(BitArray:array<>, slot);
- Parameters:
Bit:array[]
: Bit:array[]_INFOslot
: slot_INFO- Returns:
- Remarks: Sets the slot to 1.
- Parameters:
Bit:array[]
: Bit:array[]_INFOslot
: slot_INFO- Returns:
- Remarks: Sets the slot to 0.
- Parameters:
Bit:array[]
: Bit:array[]_INFOslot
: slot_INFObool:set
: bool:set_INFOsize
: size_INFO- Returns:
- native Bit_Set(BitArray:array<>, slot, bool:set, size = sizeof (array));
- Parameters:
Bit:array[]
: Bit:array[]_INFOslot
: slot_INFObool:set
: bool:set_INFOsize
: size_INFO- Returns:
- Remarks: Exactly the same as "Bit_Set", but as a macro not a function. native Bit_FastSet(BitArray:array<>, slot, bool:set, size = sizeof (array));
- Parameters:
Bit:array[]
: Bit:array[]_INFObool:set
: bool:set_INFOsize
: size_INFO- Returns:
- native Bit_SetAll(BitArray:array<>, bool:set, size = sizeof (array));
- Parameters:
Bit:array[]
: Bit:array[]_INFOsize
: size_INFO- Returns:
- Number of 1s in the array.
- Remarks: Code from: http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel native Bit_Count(BitArray:array<>, size = sizeof (array));