AndroidJNI.NewDirectByteBuffer

Declaration

public static IntPtr NewDirectByteBuffer(byte* buffer, long capacity);

Description

Allocates and returns a direct java.nio.ByteBuffer referring to the block of memory starting at the memory address address and extending capacity bytes.


Declaration

public static IntPtr NewDirectByteBuffer(NativeArray<byte> buffer);

Declaration

public static IntPtr NewDirectByteBuffer(NativeArray<sbyte> buffer);

Description

Allocates and returns a direct java.nio.ByteBuffer referring to the same block of memory as the given NativeArray.


Did you find this page useful? Please give it a rating: