文档

Unity Engine

Unity Engine

UnsafeScratchAllocator(void*, int)

Initializes and returns an instance of UnsafeScratchAllocator.
阅读时间1 分钟最后更新于 1 个月前

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.