The new buffer will be backed by the given ByteBuffer; that is, modifications to the buffer will cause the ByteBuffer to be modified and vice versa. The new buffer's capacity will be ByteBuffer#capacity, its readerOffset is set to position of ByteBuffer and writerOffset is set to limit of ByteBuffer, and its byte order will be
The new buffer will be backed by the given byte array; that is, modifications to the buffer will cause the array to be modified and vice versa. The new buffer's capacity will be array.length, its readerOffset and writerOffset will be zero, and its byte order will be