code: void writeBoolean(ByteBuf out, final boolean value) {
          int bitCount = this.bitCount + 1;
          long bitBuffer = this.bitBuffer | (value ? 1L << 64 - bitCount : 0L);
  
          if (bitCount == 32) {
              out.writeInt((int) (bitBuffer >>> 32));
              bitBuffer = 0;
              bitCount = 0;
          }
          this.bitBuffer = bitBuffer;
          this.bitCount = bitCount;
      }
docs: Writes a single bit to the output {@link ByteBuf}.
  @param value The bit to write