| Parameter | Description |
|---|---|
| buffer | The block of memory the buffer refers to. |
| capacity | The capacity, in bytes, of the memory region. |
IntPtr A local reference to the newly allocated java.nio.ByteBuffer.
Allocates and returns a direct java.nio.ByteBuffer referring to the block of memory starting at the memory address address and extending capacity bytes.
Additional resources: Java Native Interface Specification (Oracle)
| Parameter | Description |
|---|---|
| buffer | The block of memory the buffer refers to. |
IntPtr A local reference to the newly allocated java.nio.ByteBuffer.
Allocates and returns a direct java.nio.ByteBuffer referring to the same block of memory as the given NativeArray.
Additional resources: Java Native Interface Specification (Oracle)
| Parameter | Description |
|---|---|
| buffer | The block of memory the buffer refers to. |
IntPtr A local reference to the newly allocated java.nio.ByteBuffer.
Allocates and returns a direct java.nio.ByteBuffer referring to the same block of memory as the given NativeArray.
Additional resources: Java Native Interface Specification (Oracle)