docs: public int read1Bit() throws IOException {
          if (nBit == 8) {
              advance();
              if (curByte == -1) {
                  return -1;
              }
          }
          int res = (curByte >> (7 - nBit)) & 1;
          nBit++;
  
          debugBits.append(res == 0 ? '0' : '1');
          ++bitsRead;
  
          return res;
      }