Requests a {@link 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.
@param size the size of the buffer @param direct whether the buffer must be direct or not @return the requested buffer @see #release(ByteBuffer)
|
|
|
|