Debian Codegraph @

src/c/cffi/cdef.h

raw
1 #define ZSTD_CONTENTSIZE_ERROR ...
2 #define ZSTD_CONTENTSIZE_UNKNOWN ...
3
4 typedef ... ZSTD_CCtx;
5 typedef ... ZSTD_DCtx;
6 typedef ... ZSTD_CDict;
7 typedef ... ZSTD_DDict;
8
9 typedef enum {
10 ZSTD_c_compressionLevel,
11 ZSTD_c_windowLog,
12 ZSTD_c_hashLog,
13 ZSTD_c_chainLog,
14 ZSTD_c_searchLog,
15 ZSTD_c_minMatch,
16 ZSTD_c_targetLength,
17 ZSTD_c_strategy,
18 ZSTD_c_enableLongDistanceMatching,
19 ZSTD_c_ldmHashLog,
20 ZSTD_c_ldmMinMatch,
21 ZSTD_c_ldmBucketSizeLog,
22 ZSTD_c_ldmHashRateLog,
23 ZSTD_c_contentSizeFlag,
24 ZSTD_c_checksumFlag,
25 ZSTD_c_dictIDFlag,
26 ZSTD_c_nbWorkers,
27 ZSTD_c_jobSize,
28 ZSTD_c_overlapLog,
29 } ZSTD_cParameter;
30
31 typedef enum {
32 ZSTD_d_windowLogMax,
33 } ZSTD_dParameter;
34
35 typedef enum {
36 ZSTD_fast,
37 ZSTD_dfast,
38 ZSTD_greedy,
39 ZSTD_lazy,
40 ZSTD_lazy2,
41 ZSTD_btlazy2,
42 ZSTD_btopt,
43 ZSTD_btultra,
44 ZSTD_btultra2,
45 } ZSTD_strategy;
46
47 typedef enum {
48 ZSTD_reset_session_only,
49 ...
50 } ZSTD_ResetDirective;
51
52 typedef struct {
53 size_t error;
54 int lowerBound;
55 int upperBound;
56 } ZSTD_bounds;
57
58 typedef struct {
59 int compressionLevel;
60 unsigned notificationLevel;
61 unsigned dictID;
62 } ZDICT_params_t;
63
64 typedef enum {
65 ZSTD_e_continue,
66 ZSTD_e_flush,
67 ZSTD_e_end,
68 } ZSTD_EndDirective;
69
70 typedef struct ZSTD_inBuffer_s {
71 const void *src;
72 size_t size;
73 size_t pos;
74 } ZSTD_inBuffer;
75
76 typedef struct ZSTD_outBuffer_s {
77 void *dst;
78 size_t size;
79 size_t pos;
80 } ZSTD_outBuffer;
81
82 size_t ZDICT_finalizeDictionary(void *dstDictBuffer, size_t maxDictSize,
83 const void *dictContent, size_t dictContentSize,
84 const void *samplesBuffer,
85 const size_t *samplesSizes, unsigned nbSamples,
86 ZDICT_params_t parameters);
87 unsigned ZDICT_isError(size_t errorCode);
88 size_t ZDICT_trainFromBuffer(void *dictBuffer, size_t dictBufferCapacity,
89 const void *samplesBuffer,
90 const size_t *samplesSizes, unsigned nbSamples);
91 size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx *cctx, const void *dict,
92 size_t dictSize);
93 size_t ZSTD_CCtx_refCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict);
94 size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx *cctx, const void *prefix,
95 size_t prefixSize);
96 size_t ZSTD_CCtx_reset(ZSTD_CCtx *cctx, ZSTD_ResetDirective reset);
97 size_t ZSTD_CCtx_setParameter(ZSTD_CCtx *cctx, ZSTD_cParameter param,
98 int value);
99 size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx *cctx,
100 unsigned long long pledgedSrcSize);
101 size_t ZSTD_compressBound(size_t srcSize);
102 size_t ZSTD_compressStream2(ZSTD_CCtx *cctx, ZSTD_outBuffer *output,
103 ZSTD_inBuffer *input, ZSTD_EndDirective endOp);
104 ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam);
105 ZSTD_CCtx *ZSTD_createCCtx(void);
106 ZSTD_CDict *ZSTD_createCDict(const void *dictBuffer, size_t dictSize,
107 int compressionLevel);
108 ZSTD_DCtx *ZSTD_createDCtx(void);
109 ZSTD_DDict *ZSTD_createDDict(const void *dictBuffer, size_t dictSize);
110 size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx *dctx, const void *dict,
111 size_t dictSize);
112 size_t ZSTD_DCtx_refDDict(ZSTD_DCtx *dctx, const ZSTD_DDict *ddict);
113 size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx *dctx, const void *prefix,
114 size_t prefixSize);
115 size_t ZSTD_DCtx_reset(ZSTD_DCtx *dctx, ZSTD_ResetDirective reset);
116 size_t ZSTD_DCtx_setParameter(ZSTD_DCtx *dctx, ZSTD_dParameter param,
117 int value);
118 size_t ZSTD_decompressStream(ZSTD_DCtx *zds, ZSTD_outBuffer *output,
119 ZSTD_inBuffer *input);
120 int ZSTD_defaultCLevel(void);
121 ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam);
122 size_t ZSTD_DStreamOutSize(void);
123 size_t ZSTD_findFrameCompressedSize(const void *src, size_t srcSize);
124 size_t ZSTD_freeCCtx(ZSTD_CCtx *cctx);
125 size_t ZSTD_freeDCtx(ZSTD_DCtx *dctx);
126 size_t ZSTD_freeCDict(ZSTD_CDict *CDict);
127 size_t ZSTD_freeDDict(ZSTD_DDict *ddict);
128 unsigned ZSTD_getDictID_fromDict(const void *dict, size_t dictSize);
129 unsigned ZSTD_getDictID_fromFrame(const void *src, size_t srcSize);
130 const char *ZSTD_getErrorName(size_t code);
131 unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize);
132 unsigned ZSTD_isError(size_t code);
133 int ZSTD_maxCLevel(void);
134 int ZSTD_minCLevel(void);
135 unsigned ZSTD_versionNumber(void);
136 const char *ZSTD_versionString(void);