Interface ByteBufferPool

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int activeCount()  
      java.nio.ByteBuffer getByteBuffer​(int theSize)  
      java.nio.ByteBuffer reAllocate​(java.nio.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 releaseByteBuffer​(java.nio.ByteBuffer thebb)  
    • Method Detail

      • getByteBuffer

        java.nio.ByteBuffer getByteBuffer​(int theSize)
      • releaseByteBuffer

        void releaseByteBuffer​(java.nio.ByteBuffer thebb)
      • activeCount

        int activeCount()
      • reAllocate

        java.nio.ByteBuffer reAllocate​(java.nio.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