DirectByteBufferPool
class DirectByteBufferPool(capacity: Int = DEFAULT_POOL_CAPACITY, val bufferSize: Int = DEFAULT_BUFFER_SIZE) : DefaultPool<ByteBuffer>
Constructors
Link copied to clipboard
fun DirectByteBufferPool(capacity: Int = DEFAULT_POOL_CAPACITY, bufferSize: Int = DEFAULT_BUFFER_SIZE)
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