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