Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

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.