ドキュメント

Unity Engine

Download Unity

Unity Engine

NewDirectByteBuffer

Allocates and returns a direct java.nio.ByteBuffer referring to the block of memory starting at the memory address address and extending capacity bytes.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

NewDirectByteBuffer(byte*, long)

Allocates and returns a direct java.nio.ByteBuffer referring to the block of memory starting at the memory address address and extending capacity bytes.
public static nint NewDirectByteBuffer(byte* buffer, long capacity)

Parameters

buffer

The block of memory the buffer refers to.

capacity

The capacity, in bytes, of the memory region.

Returns

Type

Description

IntPtrA local reference to the newly allocated java.nio.ByteBuffer.

Remarks

NewDirectByteBuffer(NativeArray<byte>)

Allocates and returns a direct java.nio.ByteBuffer referring to the same block of memory as the given NativeArray.
public static nint NewDirectByteBuffer(NativeArray<byte> buffer)

Parameters

The block of memory the buffer refers to.

Returns

Type

Description

IntPtrA local reference to the newly allocated java.nio.ByteBuffer.

Remarks

NewDirectByteBuffer(NativeArray<sbyte>)

Allocates and returns a direct java.nio.ByteBuffer referring to the same block of memory as the given NativeArray.
public static nint NewDirectByteBuffer(NativeArray<sbyte> buffer)

Parameters

The block of memory the buffer refers to.

Returns

Type

Description

IntPtrA local reference to the newly allocated java.nio.ByteBuffer.

Remarks