ARB
gb_compress.h
Go to the documentation of this file.
1 // =============================================================== //
2 // //
3 // File : gb_compress.h //
4 // Purpose : //
5 // //
6 // Institute of Microbiology (Technical University Munich) //
7 // http://www.arb-home.de/ //
8 // //
9 // =============================================================== //
10 
11 #ifndef GB_COMPRESS_H
12 #define GB_COMPRESS_H
13 
14 #ifndef GB_STORAGE_H
15 #include "gb_storage.h"
16 #endif
17 
18 #define GB_COMPRESSION_TAGS_SIZE_MAX 100
19 
21  GB_CS_OK = 0,
22  GB_CS_SUB = 1,
23  GB_CS_ID = 2,
24  GB_CS_END = 3,
26 };
27 
29  char leaf;
31 };
32 
35 
36  int value;
37  int bitcnt;
38  int bits;
39  int mask;
40  long count;
41 
43 };
44 
45 extern int gb_convert_type_2_sizeof[];
47 
48 inline size_t GBENTRY::uncompressed_size() const {
49  return size() * gb_convert_type_2_sizeof[type()] + gb_convert_type_2_appendix_size[type()];
50 }
51 
52 #else
53 #error gb_compress.h included twice
54 #endif // GB_COMPRESS_H
gb_compress_list_commands command
Definition: gb_compress.h:34
int gb_convert_type_2_appendix_size[]
Definition: arbdb.cxx:238
int gb_convert_type_2_sizeof[]
Definition: arbdb.cxx:217
GB_TYPES type() const
Definition: gb_data.h:139
gb_compress_tree * son[2]
Definition: gb_compress.h:30
gb_compress_list * son[2]
Definition: gb_compress.h:42
gb_compress_list_commands
Definition: gb_compress.h:20
size_t uncompressed_size() const
Definition: gb_compress.h:48
size_t size() const
Definition: gb_data.h:214