Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AllocatorHelper<T>

Provides a wrapper for custom allocator.
Read time 1 minuteLast updated 8 days ago

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.