ByteBufferPool

A pool of ByteBuffers.

Based on an idea from Pbbl

Constructors

Link copied to clipboard
constructor(isDirect: Boolean)

Functions

Link copied to clipboard
open override fun clear()

Clear the pool.

Link copied to clipboard
open override fun close()

Close the pool.

Link copied to clipboard
open override fun get(capacity: Int): ByteBuffer

Get a buffer from the pool.

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

Put a buffer in the pool.