allocate Native
Create a ByteBuffer directly on native memory. Unlike ByteBuffer#allocateDirect() which allocates memory on the non-moving memory section of Java heap, this method creates a ByteBuffer directly on native memory via JNI#NewDirectByteBuffer()
Return
DataRef object
Parameters
size
size of the buffer to be allocated on the native heap.