|Modifier and Type||Interface and Description|
ByteBuffer acquire(int size, boolean direct)
ByteBuffer of the given size.
The returned buffer may have a bigger capacity than the size being requested but it will have the limit set to the given size.
size- the size of the buffer
direct- whether the buffer must be direct or not
void release(ByteBuffer buffer)
buffer- the buffer to return
default ByteBuffer newByteBuffer(int capacity, boolean direct)
Copyright © 1995–2017 Webtide. All rights reserved.