Documentation

Unity Engine


Unity Engine


Try(ref Block)

Try to allocate, free, or reallocate a block of memory.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

Try(Block)

public int Try(ref AllocatorManager.Block block)

Parameters

block

The memory block to allocate, free, or reallocate

Returns

Type

Description

int0 if successful. Otherwise, returns the error code from the allocator function.