Method ConvertExistingDataToNativeBitArray
ConvertExistingDataToNativeBitArray(void*, int, AllocatorHandle)
Returns a bit array with content aliasing a buffer.
Declaration
public static NativeBitArray ConvertExistingDataToNativeBitArray(void* ptr, int sizeInBytes, AllocatorManager.AllocatorHandle allocator)
Parameters
Type | Name | Description |
---|---|---|
void* | ptr | A buffer. |
int | sizeInBytes | Size of the buffer in bytes. Must be a multiple of 8. |
AllocatorManager.AllocatorHandle | allocator | The allocator that was used to create the buffer. |
Returns
Type | Description |
---|---|
NativeBitArray | A bit array with content aliasing a buffer. |