Constructor NativeReference
NativeReference(AllocatorHandle, NativeArrayOptions)
Initializes and returns an instance of NativeReference.
Declaration
public NativeReference(AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.ClearMemory)
Parameters
| Type | Name | Description |
|---|---|---|
| AllocatorManager.AllocatorHandle | allocator | The allocator to use. |
| NativeArrayOptions | options | Whether newly allocated bytes should be zeroed out. |
NativeReference(T, AllocatorHandle)
Initializes and returns an instance of NativeReference.
Declaration
public NativeReference(T value, AllocatorManager.AllocatorHandle allocator)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | The initial value. |
| AllocatorManager.AllocatorHandle | allocator | The allocator to use. |