| Parameter | Description |
|---|---|
| ptr | An existing buffer. |
| allocator | The allocator that was used to allocate the bytes. Needed to dispose this array. |
| sizeInBytes | The number of bytes. The length will be sizeInBytes * 8. |
Initializes and returns an instance of UnsafeBitArray which aliases an existing buffer.
| Parameter | Description |
|---|---|
| numBits | Number of bits. |
| allocator | The allocator to use. |
| options | Whether newly allocated bytes should be zeroed out. |
Initializes and returns an instance of UnsafeBitArray.