public long decodeLong(byte[] b) {
    long rv = 0;
    for (byte i : b) {
      rv = (rv << 8) | (i < 0 ? 256 + i : i);
    }
    return rv;
  }
Get an instance of TranscoderUtils.

@param pack if true, remove all zero bytes from the MSB of the packed num
src/main/java/net/spy/memcached/transcoders/TranscoderUtils.java