Interface RetainableByteBufferPool

    • Method Detail

      • acquire

        RetainableByteBuffer acquire​(int size,
                                     boolean direct)
        Acquires a memory buffer from the pool.
        Parameters:
        size - The size of the buffer. The returned buffer will have at least this capacity.
        direct - true if a direct memory buffer is needed, false otherwise.
        Returns:
        a memory buffer.