code: public void writeEliasGammaCodingPositiveInteger(int value)
        throws IOException {
      if (value > 0) {
        if (value == 1) {
          writeBit(1);
        } else {
          writeBit(0);
          writeEliasGammaCodingPositiveInteger(value / 2);
          writeBit(value % 2);
        }
      }
    }
docs: Write elias gamma coding positive integer.
  
  @param value the value
  @throws IOException Signals that an I/O exception has occurred.