DataRef
open class DataRef
Content copied to clipboard
This class wraps a DirectByteBuffer, which allows memory sharing between native and the JVM. It's safe to access the wrapped Bytebuffer even if the buffer itself outlives its DataRef wrapper.
Constructors
DataRef
Link copied to clipboard
Create a wrapper for the DirectByteBuffer so that native code can access the underlying memory region allocated by the DirectByteBuffer.