code: static public void packRecid(DataOutput2 out, long value) throws IOException {
          value = DataIO.parity1Set(value<<1);
          out.writePackedLong(value);
      }
docs: Pack RECID into output stream with 3 bit checksum.
  It will occupy 1-10 bytes depending on value (lower values occupy smaller space)
  
  @param out String to put value into
  @param value to be serialized, must be non-negative
  @throws java.io.IOException in case of IO error