A data buffer pool interface. More...
Public Member Functions | |
abstract long | getPooledBytesAvailable () |
Gets the total bytes available in the pool. More... | |
abstract void | releasePools () |
Release the pools. More... | |
abstract fm.liveswitch.DataBuffer | take (int size) |
Takes a buffer from the pool. More... | |
abstract fm.liveswitch.DataBuffer | take (int size, boolean littleEndian) |
Takes a buffer from the pool. More... | |
abstract fm.liveswitch.DataBuffer | take (int size, boolean littleEndian, boolean clearBytes) |
Takes a buffer from the pool. More... | |
A data buffer pool interface.
|
abstract |
Gets the total bytes available in the pool.
Implemented in fm.liveswitch.DataBufferPoolTracer, and fm.liveswitch.DataBufferPool.
|
abstract |
Release the pools.
Implemented in fm.liveswitch.DataBufferPoolTracer, and fm.liveswitch.DataBufferPool.
|
abstract |
Takes a buffer from the pool.
size | The number of bytes needed. |
Implemented in fm.liveswitch.DataBufferPoolTracer, and fm.liveswitch.DataBufferPool.
|
abstract |
Takes a buffer from the pool.
size | The number of bytes needed. |
littleEndian | Whether the data buffer should be little-endian. |
Implemented in fm.liveswitch.DataBufferPoolTracer, and fm.liveswitch.DataBufferPool.
|
abstract |
Takes a buffer from the pool.
size | The number of bytes needed. |
littleEndian | Whether the data buffer should be little-endian. |
clearBytes | Whether to clear the data buffer. |
Implemented in fm.liveswitch.DataBufferPoolTracer, and fm.liveswitch.DataBufferPool.