文档

Unity Engine

Unity Engine

AllocatorHelper<T>

Provides a wrapper for custom allocator.
阅读时间1 分钟最后更新于 1 个月前

Definition

public struct AllocatorHelper<T> : IDisposable where T : unmanaged, AllocatorManager.IAllocator

Constructors

Constructor

Description

AllocatorHelper`1(Unity.Collections.AllocatorManager.AllocatorHandle,System.Boolean,System.Int32)Allocate the custom allocator from backingAllocator and register it.

Properties

Property

Description

AllocatorGet the custom allocator.

Methods

Method

Description

DisposeDispose the custom allocator backing memory and unregister it.