Method Allocate
Allocate<T>()
Allocate space in a buffer.
Declaration
public ref T Allocate<T>() where T : unmanaged
Returns
| Type | Description |
|---|---|
| T | A reference to the allocation. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of value to allocate space for. |
Remarks
The space is allocated in the buffer which was specified with BeginForEachIndex(int).
Allocate(int)
Allocate space in a buffer.
Declaration
public byte* Allocate(int size)
Parameters
| Type | Name | Description |
|---|---|---|
| int | size | The number of bytes to allocate. |
Returns
| Type | Description |
|---|---|
| byte* | The allocation. |
Remarks
The space is allocated in the buffer which was specified with BeginForEachIndex(int).