BufferUtils.allocateDirect

Allocate ByteBuffer in flush mode. The position and limit will both be zero, indicating that the buffer is empty and in flush mode.

@param capacity capacity of the allocated ByteBuffer @return Buffer

class BufferUtils
static
allocateDirect
()

Meta