Constructor UnsafeScratchAllocator
UnsafeScratchAllocator(void*, int)
Initializes and returns an instance of UnsafeScratchAllocator.
Declaration
public UnsafeScratchAllocator(void* ptr, int capacityInBytes)
Parameters
Type | Name | Description |
---|---|---|
void* | ptr | An existing buffer to use as the allocator's internal buffer. |
int | capacityInBytes | The size in bytes of the internal buffer. |