Class NativeBitArrayUnsafeUtility
Unsafe helper methods for NativeBitArray.
Namespace: Unity.Collections.LowLevel.Unsafe
Syntax
public static class NativeBitArrayUnsafeUtility
Methods
ConvertExistingDataToNativeBitArray(Void*, Int32, AllocatorManager.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. |
| Int32 | 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. |