@ExperimentalApi public abstract class AllocatedBuffer extends Object
BufferAllocator.| Constructor and Description |
|---|
AllocatedBuffer() |
| Modifier and Type | Method and Description |
|---|---|
abstract ByteBuffer |
nioBuffer()
Returns the
ByteBuffer that backs this buffer. |
abstract AllocatedBuffer |
release()
Returns the delegate
ByteBuffer for reuse or garbage collection. |
AllocatedBuffer |
retain()
Deprecated.
this method is not used
|
static AllocatedBuffer |
wrap(ByteBuffer buffer)
Creates a new
AllocatedBuffer that is backed by the given ByteBuffer. |
public abstract ByteBuffer nioBuffer()
ByteBuffer that backs this buffer.@Deprecated public AllocatedBuffer retain()
public abstract AllocatedBuffer release()
ByteBuffer for reuse or garbage collection.AllocatedBuffer instancepublic static AllocatedBuffer wrap(ByteBuffer buffer)
AllocatedBuffer that is backed by the given ByteBuffer.