toJByteBuffer method

JByteBuffer toJByteBuffer()

Creates a JByteBuffer from the content of this list.

The JByteBuffer will be allocated using JByteBuffer.allocateDirect.

Implementation

JByteBuffer toJByteBuffer() {
  return JByteBuffer.fromList(this);
}