static long encode_double(double x) {
        return Double.doubleToRawLongBits(x);
    }
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