duplicate method

JByteBuffer duplicate()

Creates a new byte buffer that shares this buffer's content.

Implementation

JByteBuffer duplicate() {
  return _duplicateId(this, const JByteBufferType(), []);
}