docs: public void write1Bit(int value) throws IOException {
          Debug.print(value);
          if (curBit == 8) {
              curBit = 0;
              writeCurByte();
          }
          curByte[curBit++] = value;
      }