1 #ifndef __DICT_ZIP_LIB_H__
2 #define __DICT_ZIP_LIB_H__
11 #define DICT_CACHE_SIZE 5
25 bool open(const std::string& filename, int computeCRC);
27 void read(char *buffer, unsigned long start, unsigned long size);
33 const char *start; /* start of mmap'd area */
34 const char *end; /* end of mmap'd area */
35 unsigned long size; /* size of mmap */
51 unsigned long *offsets; /* Sum-scan of chunks. */
52 std::string origFilename;
56 unsigned long compressedLength;
57 dictCache cache[DICT_CACHE_SIZE];
60 int read_header(const std::string &filename, int computeCRC);
63 #endif//!__DICT_ZIP_LIB_H__