commit | author | age
|
7f6076
|
1 |
/* vim: set ts=4 sts=4 sw=4 noet : */ |
854cb6
|
2 |
#ifndef _H_SNAPSHOT |
SP |
3 |
#define _H_SNAPSHOT |
|
4 |
|
22721d
|
5 |
|
SP |
6 |
|
|
7 |
typedef struct{ |
|
8 |
char *string; |
|
9 |
ts_uint beg; |
|
10 |
} ts_string; |
|
11 |
|
487968
|
12 |
//#define COMPRESSION |
22721d
|
13 |
|
854cb6
|
14 |
ts_bool xml_trisurf_data(FILE *fh, ts_vesicle *vesicle); |
SP |
15 |
ts_bool xml_trisurf_header(FILE *fh, ts_vesicle *vesicle); |
|
16 |
ts_bool xml_trisurf_footer(FILE *fh); |
22721d
|
17 |
ts_bool xml_trisurf_tria(ts_string *data, ts_triangle_list *tlist); |
SP |
18 |
ts_bool xml_trisurf_tria_neigh(ts_string *data, ts_triangle_list *tlist); |
|
19 |
ts_bool xml_trisurf_vtx_neigh(ts_string *data, ts_vertex_list *vlist); |
|
20 |
ts_bool xml_trisurf_vtx_tristar(ts_string *data, ts_vertex_list *vlist); |
4891eb
|
21 |
ts_bool xml_trisurf_nucleus(ts_string *data, ts_vesicle* vesicle); |
49981c
|
22 |
ts_bool xml_trisurf_constvolarea(ts_string *data, ts_double volume, ts_double area); |
f0bcea
|
23 |
/* UTILITIES */ |
SP |
24 |
char *base64_encode(const unsigned char *data, size_t input_length, size_t *output_length); |
|
25 |
unsigned char *base64_decode(const char *data, size_t input_length, size_t *output_length); |
|
26 |
void build_decoding_table(); |
|
27 |
void base64_cleanup(); |
|
28 |
ts_uint ts_compress_string64(char *data, ts_uint data_len, char **compressed); |
a69203
|
29 |
char *ts_compress(char *data, ts_uint data_len, ts_uint original_len); |
854cb6
|
30 |
#endif |