ConvertExistingDataToNativeBitArray(void*, int, AllocatorHandle)
Returns a bit array with content aliasing a buffer.
阅读时间1 分钟最后更新于 1 个月前
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. |