Interface ByteBufferPool

All Known Implementing Classes:
ByteBufferPoolImpl

public interface ByteBufferPool
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    getByteBuffer(int theSize)
     
    reAllocate(ByteBuffer oldByteBuffer, int minimumSize)
    Return a new ByteBuffer of at least minimumSize and copy any bytes in the oldByteBuffer starting at oldByteBuffer.position() up to oldByteBuffer.limit() into the returned ByteBuffer.
    void
     
  • Method Details

    • getByteBuffer

      ByteBuffer getByteBuffer(int theSize)
    • releaseByteBuffer

      void releaseByteBuffer(ByteBuffer thebb)
    • activeCount

      int activeCount()
    • reAllocate

      ByteBuffer reAllocate(ByteBuffer oldByteBuffer, int minimumSize)
      Return a new ByteBuffer of at least minimumSize and copy any bytes in the oldByteBuffer starting at oldByteBuffer.position() up to oldByteBuffer.limit() into the returned ByteBuffer.
      Parameters:
      oldByteBuffer - old buffer to take bytes from
      minimumSize - minimum size of Buffer
      Returns:
      the new ByteBuffer