static long decode_zigzag(long x) {
        return ((x >>> 1) ^ (-(x & 0x1))); // note LSR
    }
Class for serializing Slime data into binary format, or deserializing
the binary format into a Slime object.
vespajlib/src/main/java/com/yahoo/slime/BinaryFormat.java