文档

Unity Engine

Unity Engine

GetDirectBufferCapacity(nint)

Fetches and returns the capacity of the memory region referenced by the given direct java.nio.Buffer.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule

GetDirectBufferCapacity(IntPtr)

public static long GetDirectBufferCapacity(nint buffer)

Parameters

buffer

The direct java.nio.Buffer.

Returns

Type

Description

longThe capacity, in bytes, of the memory region, or -1 if the buffer isn't a direct buffer or direct buffers aren't supported.

Remarks