public ByteBufferPool
| Modifier and Type | Interface and Description |
|---|---|
static class |
ByteBufferPool.Companion |
| Modifier and Type | Field and Description |
|---|---|
static ByteBufferPool.Companion |
Companion |
| Modifier and Type | Method and Description |
|---|---|
void |
free(java.nio.ByteBuffer buffer)
Returns this buffer to the pool. User code must not hold any
references to the given buffer after this method returns.
|
java.nio.ByteBuffer |
pop(int minSize)
Returns a buffer that has at least the given amount of bytes
of available space. If no such buffer is currently free, one
will be allocated.
|
static ByteBufferPool.Companion Companion
java.nio.ByteBuffer pop(int minSize)
Returns a buffer that has at least the given amount of bytes of available space. If no such buffer is currently free, one will be allocated.
void free(java.nio.ByteBuffer buffer)
Returns this buffer to the pool. User code must not hold any references to the given buffer after this method returns.