Topic: Binary format of serialization
And what is better for using?
It is necessary from.NET applications or VBA Excel to transfer in With ++ application structure dataful.
Lines, integer numbers, arrays of bytes.
binn *obj; //create a new object obj = binn_object (); //add values to it binn_object_set_int32 (obj, "id", 123); binn_object_set_str (obj, "name", "John"); binn_object_set_double (obj, "total", 2.55); //send over the network or save to a file... send (sock, binn_ptr (obj), binn_size (obj)); //release the buffer binn_free (obj);
int id; char *name; double total; id = binn_object_int32 (obj, "id"); name = binn_object_str (obj, "name"); total = binn_object_double (obj, "total");
Only did not find where it is used. And it is not clear, how many bugs in implementation of this project.
There is something similar? It is better even more superficial and standard.