Interface ByteBufferPool
- All Known Implementing Classes:
ByteBufferPoolImpl
public interface ByteBufferPool
-
Method Summary
Modifier and TypeMethodDescriptionintgetByteBuffer(int theSize) reAllocate(ByteBuffer oldByteBuffer, int minimumSize) Return a newByteBufferof at leastminimumSizeand copy any bytes in theoldByteBufferstarting atoldByteBuffer.position()up tooldByteBuffer.limit()into the returnedByteBuffer.voidreleaseByteBuffer(ByteBuffer thebb)
-
Method Details
-
getByteBuffer
-
releaseByteBuffer
-
activeCount
int activeCount() -
reAllocate
Return a newByteBufferof at leastminimumSizeand copy any bytes in theoldByteBufferstarting atoldByteBuffer.position()up tooldByteBuffer.limit()into the returnedByteBuffer.- Parameters:
oldByteBuffer- old buffer to take bytes fromminimumSize- minimum size of Buffer- Returns:
- the new ByteBuffer
-