ConvertExistingDataToNativeBitArray(void*, int, AllocatorHandle)
Returns a bit array with content aliasing a buffer.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public static NativeBitArray ConvertExistingDataToNativeBitArray(void* ptr, int sizeInBytes, AllocatorManager.AllocatorHandle allocator)
Parameters
A buffer.
Size of the buffer in bytes. Must be a multiple of 8.
The allocator that was used to create the buffer.
Returns
Type | Description |
|---|---|
| NativeBitArray | A bit array with content aliasing a buffer. |