ドキュメント

Unity Engine

Unity Engine

Try(ref Block)

Try to allocate, free, or reallocate a block of memory. This is an internal function, and is not generally called by the user.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

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.