FromPool

class FromPool(val pool: BufferPool) : BufferAllocator

Allocate buffers from a buffer pool for reuse.

Constructors

Link copied to clipboard
constructor(pool: BufferPool)

Properties

Link copied to clipboard
val pool: BufferPool

Functions

Link copied to clipboard
open override fun allocate(size: Int): ReadWriteBuffer

Allocates a buffer of the specified size.