Struct UnsafeScratchAllocator
Syntax
public struct UnsafeScratchAllocator
Constructors
UnsafeScratchAllocator(Void*, Int32)
Declaration
public UnsafeScratchAllocator(void *pointer, int capacityInBytes)
Parameters
Type |
Name |
Description |
System.Void* |
pointer |
|
System.Int32 |
capacityInBytes |
|
Methods
Allocate(Int32, Int32)
Declaration
public void *Allocate(int sizeInBytes, int alignmentInBytes)
Parameters
Type |
Name |
Description |
System.Int32 |
sizeInBytes |
|
System.Int32 |
alignmentInBytes |
|
Returns
Type |
Description |
System.Void* |
|
Allocate<T>(Int32)
Declaration
public void *Allocate<T>(int count = 1)
where T : struct
Parameters
Type |
Name |
Description |
System.Int32 |
count |
|
Returns
Type |
Description |
System.Void* |
|
Type Parameters
Extension Methods