/** * Create a new ArrayBuffer with the given ByteBuffer as the backing store. The ByteBuffer must * be created as a DirectBuffer. * * @param byteBuffer The ByteBuffer to back this ArrayBuffer. */ public ArrayBuffer(final ByteBuffer byteBuffer) { this.byteBuffer = validateByteBuffer(byteBuffer); }
/** * Create a new ArrayBuffer with the given ByteBuffer as the backing store. The ByteBuffer must * be created as a DirectBuffer. * * @param byteBuffer The ByteBuffer to back this ArrayBuffer. */ public ArrayBuffer(final ByteBuffer byteBuffer) { this.byteBuffer = validateByteBuffer(byteBuffer); }