Class NativeBitArrayUnsafeUtility
NativeBitArray unsafe utility helpers.
Namespace: Unity.Collections.LowLevel.Unsafe
Syntax
public static class NativeBitArrayUnsafeUtility
Methods
ConvertExistingDataToNativeBitArray(Void*, Int32, Allocator)
Convert existing data to bit array container.
Declaration
public static NativeBitArray ConvertExistingDataToNativeBitArray(void *ptr, int sizeInBytes, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
Void* | ptr | Pointer to data. |
Int32 | sizeInBytes | Size of data in bytes. Must be multiple of 8-bytes. |
Allocator | allocator | A member of the Unity.Collections.Allocator enumeration. |
Returns
Type | Description |
---|---|
NativeBitArray | Returns bit array container. |