DefaultBufferPool
class DefaultBufferPool(bufferSize: Int = DEFAULT_BUFFER_SIZE, capacity: Int = 1000, allocator: Allocator = DefaultAllocator) : DefaultPool<ChunkBuffer>
Constructors
Link copied to clipboard
fun DefaultBufferPool(bufferSize: Int = DEFAULT_BUFFER_SIZE, capacity: Int = 1000, allocator: Allocator = DefaultAllocator)
Functions
Link copied to clipboard
borrow an instance. Pool can recycle an old instance or create a new one
Link copied to clipboard
Recycle an instance. Should be recycled what was borrowed before otherwise could fail