The list of methods to do ByteBuffer Create are organized into topic(s).
ByteBuffer
allocateByteBuffer(int capacity) Allocate a ByteBuffer .
return capacity >= MIN_DIRECT_BUFFER_SIZE ? ByteBuffer.allocateDirect(capacity)
: ByteBuffer.allocate(capacity);
ByteBuffer
createByteBuffer(byte... values) Constructs a direct native-ordered bytebuffer with the specified size.
ByteBuffer buff = createByteBuffer(values.length);
buff.flip();
return (buff);
ByteBuffer
createByteBuffer(byte[] data) Create a ByteBuffer for the provided data using the default byte order ( DataTypeTestUtil#DEFAULT_BYTE_ORDER ).
return createByteBuffer(data, DEFAULT_BYTE_ORDER);
ByteBuffer
createByteBuffer(int capacity) Allocates a direct native-ordered bytebuffer with the specified capacity.
return ByteBuffer.allocateDirect(capacity).order(ByteOrder.nativeOrder());