ByteBuffer. Instances of this class are reusable but are NOT threadsafe.
Instances are vended by ByteBufferPool#getOrCreate().
Users are expected to call close() when the decoder is no longer needed.
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | PoolableByteBuffer(Pool<PoolableByteBuffer>
the pool to which the object will be returned upon pool)close().
|
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer |
| buffer | back to summary |
|---|---|
| private final ByteBuffer buffer | |
| BUFFER_SIZE_IN_BYTES | back to summary |
|---|---|
| pack-priv static final int BUFFER_SIZE_IN_BYTES | |
| PoolableByteBuffer | back to summary |
|---|---|
pack-priv PoolableByteBuffer(Pool<PoolableByteBuffer> pool)
| |
| getBuffer | back to summary |
|---|---|
public ByteBuffer getBuffer()
| |