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.
Read time 1 minuteLast updated a day ago
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
Returns
Type | Description |
|---|---|
| IntPtr |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)
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
Returns
Type | Description |
|---|---|
| IntPtr |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)
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
Returns
Type | Description |
|---|---|
| IntPtr |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)