commit | author | age
|
854cb6
|
1 |
#ifndef _H_SNAPSHOT |
SP |
2 |
#define _H_SNAPSHOT |
|
3 |
|
22721d
|
4 |
|
SP |
5 |
|
|
6 |
typedef struct{ |
|
7 |
char *string; |
|
8 |
ts_uint beg; |
|
9 |
} ts_string; |
|
10 |
|
|
11 |
#define COMPRESSION |
|
12 |
|
854cb6
|
13 |
ts_bool xml_trisurf_data(FILE *fh, ts_vesicle *vesicle); |
SP |
14 |
ts_bool xml_trisurf_header(FILE *fh, ts_vesicle *vesicle); |
|
15 |
ts_bool xml_trisurf_footer(FILE *fh); |
22721d
|
16 |
ts_bool xml_trisurf_tria(ts_string *data, ts_triangle_list *tlist); |
SP |
17 |
ts_bool xml_trisurf_tria_neigh(ts_string *data, ts_triangle_list *tlist); |
|
18 |
ts_bool xml_trisurf_vtx_neigh(ts_string *data, ts_vertex_list *vlist); |
|
19 |
ts_bool xml_trisurf_vtx_tristar(ts_string *data, ts_vertex_list *vlist); |
f0bcea
|
20 |
|
SP |
21 |
/* UTILITIES */ |
|
22 |
char *base64_encode(const unsigned char *data, size_t input_length, size_t *output_length); |
|
23 |
unsigned char *base64_decode(const char *data, size_t input_length, size_t *output_length); |
|
24 |
void build_decoding_table(); |
|
25 |
void base64_cleanup(); |
|
26 |
ts_uint ts_compress_string64(char *data, ts_uint data_len, char **compressed); |
854cb6
|
27 |
#endif |