public byte decodeByte(byte[] in) {
    assert in.length <= 1 : "Too long for a byte";
    byte rv = 0;
    if (in.length == 1) {
      rv = in[0];
    }
    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