aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/quicklz/table.h
blob: cac42fe6f08fa4ff1b5ff6f94d08793fd1f7e6c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef table_h_asd78567asdf
#define table_h_asd78567asdf

#include <string.h>

#if defined(__cplusplus)
extern "C" {
#endif

struct TQuickLZMethods {
    size_t (*SizeDecompressed)(const char* source);
    size_t (*SizeCompressed)(const char* source);
    size_t (*Decompress)(const char* source, void* destination, char* scratch_decompress);
    size_t (*Compress)(const void* source, char* destination, size_t size, char* scratch_compress);
    int    (*Setting)(int setting);

    const char* Name;
};

struct TQuickLZMethods* GetLzqTable(unsigned ver, unsigned level, unsigned buf);

#if defined(__cplusplus)
}
#endif

#endif