clearBit method

void clearBit(
  1. int position,
  2. int maskToClear
)

Implementation

void clearBit(int position, int maskToClear) {
  if (position < _byteBuffer.length) {
    // Lets clear the bit
    seek(position);
    int current = readUnsignedByte();
    current = current & ~maskToClear;
    seek(position);
    writeUnsignedByte(current);
  }
}