- *v = *(float *)data;
- return sizeof(float);
-}
-
-static unsigned read_double(double *v, const char *data)
-{
- *v = *(double *)data;
- return sizeof(double);
-}
-
-static unsigned read_pointer(void **v, const char *data)
-{
- *v = *(void **)data;
- return sizeof(void *);
-}
-
-static unsigned read_data(const void **v, const char *data)
-{
- int vlen;
- unsigned pos = 0;
- pos += read_int(&vlen, data);
- if(vlen)
- *v = data+pos;
- else
- *v = NULL;
- return pos+vlen;
-}
-
-static unsigned read_string(const unsigned char **v, const char *data)
-{
- return read_data((const void **)v, data);