static byte encode_type_and_meta(int type, int meta) {
        return (byte) ((meta << 3) | (type & 0x7));
    }
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