文档

Unity Engine

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

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 IntPtr NewDirectByteBuffer(byte* buffer, long capacity)

Parameters

buffer


capacity

Returns

Type

Description

IntPtr

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 IntPtr NewDirectByteBuffer(NativeArray<byte> buffer)

Parameters

Returns

Type

Description

IntPtr

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 IntPtr NewDirectByteBuffer(NativeArray<sbyte> buffer)

Parameters

Returns

Type

Description

IntPtr

Remarks