NoAllocBitArray
1 min read • 92 wordsnamespace InitialPrefabs.Collections
A stack only bitarray treats each bit as a boolean per byte. This means that each byte can store 8 booleans.
int CalculateSize(int totalBools)
Calculates the total number of bytes the NoAllocBitArray can store. For example if you want to store 8 booleans, we will only need 1 byte.
| Parameter | Description |
|---|---|
| totalBools | The total number of booleans to store. |
int - An integer to the nearest total number of bytes.
NoAllocBitArrayEnumerator GetEnumerator()
Go back to API Home