文档

Unity Engine

Download Unity

Unity Engine

FreeTracked

Free memory with leak tracking.
阅读时间1 分钟最后更新于 2 个月前

Definition

FreeTracked(void*, Allocator)

Free memory with leak tracking.
public static void FreeTracked(void* memory, Allocator allocator)

Parameters

memory

Memory pointer.

allocator

Allocator.

FreeTracked(void*, MemoryLabel)

Free memory with leak tracking, using the specified memory label.
public static void FreeTracked(void* memory, MemoryLabel label)

Parameters

memory

Memory pointer.

The memory label that was used to allocate the memory. The memory label must match the one used during allocation to ensure correct deallocation.