@Override public void setBits(long offsetBytes, byte bitMask) { assertBounds(offsetBytes, BYTE_SIZE, capacityBytes_); long address = getAddress(offsetBytes); byte value = mem_.getByte(address); mem_.putByte(address, (byte) (value | bitMask)); }
@Override public void putByte(long offsetBytes, byte srcValue) { assertBounds(offsetBytes, BYTE_SIZE, capacityBytes_); mem_.putByte(getAddress(offsetBytes), srcValue); }