ByteBufferPoolNone

class ByteBufferPoolNone(isDirect: Boolean = false) : ByteBufferPool

A non-implementation of ByteBufferPool that does not pool any buffers.

This is the default implementation of ByteBufferPool for the knio library.

Constructors

Link copied to clipboard
constructor(isDirect: Boolean = false)

Functions

Link copied to clipboard
open override fun acquire(size: Int): ByteBuffer

Acquires a buffer of the specified size, allocating a new buffer if necessary. If a buffer exists equal to or greater than the specified size, within the block size, that buffer will be returned.

Link copied to clipboard
open override fun release(buffer: ByteBuffer)

Releases the buffer back to the pool.