Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UnsafeScratchAllocator(void*, int)

Initializes and returns an instance of UnsafeScratchAllocator.
Read time 1 minuteLast updated 13 days ago

Definition

public UnsafeScratchAllocator(void* ptr, int capacityInBytes)

Parameters

An existing buffer to use as the allocator's internal buffer.

capacityInBytes

The size in bytes of the internal buffer.