void (final ByteBuffer data, final int offsetInPage) { lockPageForWrite(); try { checkPageIsValidForAccess(); //RC: since java16 may use this.data.put(offsetInPage, data, 0, data.remaining()); final int length = data.remaining(); final ByteBuffer slice = this.data.duplicate() .order(data.order()); slice.position(offsetInPage); slice.put(data); regionModified(offsetInPage, length); } finally { unlockPageForWrite(); } }