Exemplo n.º 1
0
 @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));
 }
Exemplo n.º 2
0
 @Override
 public void putByte(long offsetBytes, byte srcValue) {
   assertBounds(offsetBytes, BYTE_SIZE, capacityBytes_);
   mem_.putByte(getAddress(offsetBytes), srcValue);
 }