Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AllocatorManager.Range

A range of allocated memory.
Read time 1 minuteLast updated 12 days ago

Definition

public struct AllocatorManager.Range : IDisposable

Remarks

The name is perhaps misleading: only in combination with a AllocatorManager.Block does a
Range
have sufficient information to represent the number of bytes in an allocation. The reason
Range
is its own type that's separate from
Block
stems from some efficiency concerns in the implementation details. In most cases, a
Range
is only used in conjunction with an associated
Block
.

Fields

Value

Description

AllocatorThe allocator function used for this range.
ItemsNumber of items allocated in this range.
PointerPointer to the start of this range.

Methods

Method

Description

DisposeDeallocates the memory represented by this range.