Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ConvertExistingDataToNativeBitArray(void*, int, AllocatorHandle)

Returns a bit array with content aliasing a buffer.
Read time 1 minuteLast updated 10 days ago

Definition

public static NativeBitArray ConvertExistingDataToNativeBitArray(void* ptr, int sizeInBytes, AllocatorManager.AllocatorHandle allocator)

Parameters

A buffer.

sizeInBytes

Size of the buffer in bytes. Must be a multiple of 8.

The allocator that was used to create the buffer.

Returns

Type

Description

NativeBitArrayA bit array with content aliasing a buffer.