Beispiel #1
0
 public void atPut(int offset, boolean value) {
   int index = indexFor(offset);
   int pos = offset % bitsPerWord;
   if (value) {
     data[index] = Bits.setNthBit(data[index], pos);
   } else {
     data[index] = Bits.clearNthBit(data[index], pos);
   }
 }