BufferUtils.allocate

Allocate ByteBuffer in flush mode. The position and limit will both be zero, indicating that the buffer is empty and must be flipped before any data is put to it.

@param capacity capacity of the allocated ByteBuffer @return Buffer

class BufferUtils
static
allocate
(
size_t capacity
)

Meta