Go to the documentation of this file.
10 #if defined (__cplusplus)
23 #ifndef ZSTDLIB_VISIBLE
25 # ifdef ZSTDLIB_VISIBILITY
26 # define ZSTDLIB_VISIBLE ZSTDLIB_VISIBILITY
27 # elif defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__)
28 # define ZSTDLIB_VISIBLE __attribute__ ((visibility ("default")))
30 # define ZSTDLIB_VISIBLE
34 #ifndef ZSTDLIB_HIDDEN
35 # if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__)
36 # define ZSTDLIB_HIDDEN __attribute__ ((visibility ("hidden")))
38 # define ZSTDLIB_HIDDEN
42 #if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1)
43 # define ZSTDLIB_API __declspec(dllexport) ZSTDLIB_VISIBLE
44 #elif defined(ZSTD_DLL_IMPORT) && (ZSTD_DLL_IMPORT==1)
45 # define ZSTDLIB_API __declspec(dllimport) ZSTDLIB_VISIBLE
47 # define ZSTDLIB_API ZSTDLIB_VISIBLE
55 #ifdef ZSTD_DISABLE_DEPRECATE_WARNINGS
56 # define ZSTD_DEPRECATED(message)
58 # if defined (__cplusplus) && (__cplusplus >= 201402)
59 # define ZSTD_DEPRECATED(message) [[deprecated(message)]]
60 # elif (defined(GNUC) && (GNUC > 4 || (GNUC == 4 && GNUC_MINOR >= 5))) || defined(__clang__)
61 # define ZSTD_DEPRECATED(message) __attribute__((deprecated(message)))
62 # elif defined(__GNUC__) && (__GNUC__ >= 3)
63 # define ZSTD_DEPRECATED(message) __attribute__((deprecated))
64 # elif defined(_MSC_VER)
65 # define ZSTD_DEPRECATED(message) __declspec(deprecated(message))
67 # pragma message("WARNING: You need to implement ZSTD_DEPRECATED for this compiler")
68 # define ZSTD_DEPRECATED(message)
107 #define ZSTD_VERSION_MAJOR 1
108 #define ZSTD_VERSION_MINOR 5
109 #define ZSTD_VERSION_RELEASE 5
110 #define ZSTD_VERSION_NUMBER (ZSTD_VERSION_MAJOR *100*100 + ZSTD_VERSION_MINOR *100 + ZSTD_VERSION_RELEASE)
116 #define ZSTD_LIB_VERSION ZSTD_VERSION_MAJOR.ZSTD_VERSION_MINOR.ZSTD_VERSION_RELEASE
117 #define ZSTD_QUOTE(str) #str
118 #define ZSTD_EXPAND_AND_QUOTE(str) ZSTD_QUOTE(str)
119 #define ZSTD_VERSION_STRING ZSTD_EXPAND_AND_QUOTE(ZSTD_LIB_VERSION)
128 #ifndef ZSTD_CLEVEL_DEFAULT
129 # define ZSTD_CLEVEL_DEFAULT 3
137 #define ZSTD_MAGICNUMBER 0xFD2FB528
138 #define ZSTD_MAGIC_DICTIONARY 0xEC30A437
139 #define ZSTD_MAGIC_SKIPPABLE_START 0x184D2A50
140 #define ZSTD_MAGIC_SKIPPABLE_MASK 0xFFFFFFF0
142 #define ZSTD_BLOCKSIZELOG_MAX 17
143 #define ZSTD_BLOCKSIZE_MAX (1<<ZSTD_BLOCKSIZELOG_MAX)
156 const void* src,
size_t srcSize,
191 #define ZSTD_CONTENTSIZE_UNKNOWN (0ULL - 1)
192 #define ZSTD_CONTENTSIZE_ERROR (0ULL - 2)
231 #define ZSTD_MAX_INPUT_SIZE ((sizeof(size_t)==8) ? 0xFF00FF00FF00FF00LLU : 0xFF00FF00U)
232 #define ZSTD_COMPRESSBOUND(srcSize) (((size_t)(srcSize) >= ZSTD_MAX_INPUT_SIZE) ? 0 : (srcSize) + ((srcSize)>>8) + (((srcSize) < (128<<10)) ? (((128<<10) - (srcSize)) >> 11) : 0))
272 void*
dst,
size_t dstCapacity,
273 const void* src,
size_t srcSize,
292 void*
dst,
size_t dstCapacity,
293 const void* src,
size_t srcSize);
588 void*
dst,
size_t dstCapacity,
589 const void* src,
size_t srcSize);
910 void*
dst,
size_t dstCapacity,
911 const void* src,
size_t srcSize,
912 const void* dict,
size_t dictSize,
922 void*
dst,
size_t dstCapacity,
923 const void* src,
size_t srcSize,
924 const void* dict,
size_t dictSize);
958 void*
dst,
size_t dstCapacity,
959 const void* src,
size_t srcSize,
979 void*
dst,
size_t dstCapacity,
980 const void* src,
size_t srcSize,
1089 const void* prefix,
size_t prefixSize);
1144 const void* prefix,
size_t prefixSize);
1170 #if defined(ZSTD_STATIC_LINKING_ONLY) && !defined(ZSTD_H_ZSTD_STATIC_LINKING_ONLY)
1171 #define ZSTD_H_ZSTD_STATIC_LINKING_ONLY
1174 #ifndef ZSTDLIB_STATIC_API
1175 # if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1)
1176 # define ZSTDLIB_STATIC_API __declspec(dllexport) ZSTDLIB_VISIBLE
1177 # elif defined(ZSTD_DLL_IMPORT) && (ZSTD_DLL_IMPORT==1)
1178 # define ZSTDLIB_STATIC_API __declspec(dllimport) ZSTDLIB_VISIBLE
1180 # define ZSTDLIB_STATIC_API ZSTDLIB_VISIBLE
1194 #define ZSTD_FRAMEHEADERSIZE_PREFIX(format) ((format) == ZSTD_f_zstd1 ? 5 : 1)
1195 #define ZSTD_FRAMEHEADERSIZE_MIN(format) ((format) == ZSTD_f_zstd1 ? 6 : 2)
1196 #define ZSTD_FRAMEHEADERSIZE_MAX 18
1197 #define ZSTD_SKIPPABLEHEADERSIZE 8
1200 #define ZSTD_WINDOWLOG_MAX_32 30
1201 #define ZSTD_WINDOWLOG_MAX_64 31
1202 #define ZSTD_WINDOWLOG_MAX ((int)(sizeof(size_t) == 4 ? ZSTD_WINDOWLOG_MAX_32 : ZSTD_WINDOWLOG_MAX_64))
1203 #define ZSTD_WINDOWLOG_MIN 10
1204 #define ZSTD_HASHLOG_MAX ((ZSTD_WINDOWLOG_MAX < 30) ? ZSTD_WINDOWLOG_MAX : 30)
1205 #define ZSTD_HASHLOG_MIN 6
1206 #define ZSTD_CHAINLOG_MAX_32 29
1207 #define ZSTD_CHAINLOG_MAX_64 30
1208 #define ZSTD_CHAINLOG_MAX ((int)(sizeof(size_t) == 4 ? ZSTD_CHAINLOG_MAX_32 : ZSTD_CHAINLOG_MAX_64))
1209 #define ZSTD_CHAINLOG_MIN ZSTD_HASHLOG_MIN
1210 #define ZSTD_SEARCHLOG_MAX (ZSTD_WINDOWLOG_MAX-1)
1211 #define ZSTD_SEARCHLOG_MIN 1
1212 #define ZSTD_MINMATCH_MAX 7
1213 #define ZSTD_MINMATCH_MIN 3
1214 #define ZSTD_TARGETLENGTH_MAX ZSTD_BLOCKSIZE_MAX
1215 #define ZSTD_TARGETLENGTH_MIN 0
1216 #define ZSTD_STRATEGY_MIN ZSTD_fast
1217 #define ZSTD_STRATEGY_MAX ZSTD_btultra2
1218 #define ZSTD_BLOCKSIZE_MAX_MIN (1 << 10)
1221 #define ZSTD_OVERLAPLOG_MIN 0
1222 #define ZSTD_OVERLAPLOG_MAX 9
1224 #define ZSTD_WINDOWLOG_LIMIT_DEFAULT 27
1232 #define ZSTD_LDM_HASHLOG_MIN ZSTD_HASHLOG_MIN
1233 #define ZSTD_LDM_HASHLOG_MAX ZSTD_HASHLOG_MAX
1234 #define ZSTD_LDM_MINMATCH_MIN 4
1235 #define ZSTD_LDM_MINMATCH_MAX 4096
1236 #define ZSTD_LDM_BUCKETSIZELOG_MIN 1
1237 #define ZSTD_LDM_BUCKETSIZELOG_MAX 8
1238 #define ZSTD_LDM_HASHRATELOG_MIN 0
1239 #define ZSTD_LDM_HASHRATELOG_MAX (ZSTD_WINDOWLOG_MAX - ZSTD_HASHLOG_MIN)
1242 #define ZSTD_TARGETCBLOCKSIZE_MIN 64
1243 #define ZSTD_TARGETCBLOCKSIZE_MAX ZSTD_BLOCKSIZE_MAX
1244 #define ZSTD_SRCSIZEHINT_MIN 0
1245 #define ZSTD_SRCSIZEHINT_MAX INT_MAX
1253 unsigned int offset;
1258 unsigned int litLength;
1259 unsigned int matchLength;
1295 unsigned targetLength;
1297 } ZSTD_compressionParameters;
1300 int contentSizeFlag;
1303 } ZSTD_frameParameters;
1306 ZSTD_compressionParameters cParams;
1307 ZSTD_frameParameters fParams;
1312 ZSTD_dct_rawContent = 1,
1313 ZSTD_dct_fullDict = 2
1314 } ZSTD_dictContentType_e;
1317 ZSTD_dlm_byCopy = 0,
1319 } ZSTD_dictLoadMethod_e;
1323 ZSTD_f_zstd1_magicless = 1
1330 ZSTD_d_validateChecksum = 0,
1331 ZSTD_d_ignoreChecksum = 1
1332 } ZSTD_forceIgnoreChecksum_e;
1336 ZSTD_rmd_refSingleDDict = 0,
1337 ZSTD_rmd_refMultipleDDicts = 1
1338 } ZSTD_refMultipleDDicts_e;
1373 ZSTD_dictDefaultAttach = 0,
1374 ZSTD_dictForceAttach = 1,
1375 ZSTD_dictForceCopy = 2,
1376 ZSTD_dictForceLoad = 3
1377 } ZSTD_dictAttachPref_e;
1383 ZSTD_lcm_huffman = 1,
1385 ZSTD_lcm_uncompressed = 2
1386 } ZSTD_literalCompressionMode_e;
1396 } ZSTD_paramSwitch_e;
1446 typedef enum { ZSTD_frame, ZSTD_skippableFrame } ZSTD_frameType_e;
1448 unsigned long long frameContentSize;
1449 unsigned long long windowSize;
1450 unsigned blockSizeMax;
1451 ZSTD_frameType_e frameType;
1452 unsigned headerSize;
1454 unsigned checksumFlag;
1455 unsigned _reserved1;
1456 unsigned _reserved2;
1508 #define ZSTD_DECOMPRESSION_MARGIN(originalSize, blockSize) ((size_t)( \
1509 ZSTD_FRAMEHEADERSIZE_MAX + \
1511 ((originalSize) == 0 ? 0 : 3 * (((originalSize) + (blockSize) - 1) / blockSize)) + \
1516 ZSTD_sf_noBlockDelimiters = 0,
1517 ZSTD_sf_explicitBlockDelimiters = 1
1518 } ZSTD_sequenceFormat_e;
1545 ZSTDLIB_STATIC_API
size_t
1547 ZSTD_Sequence* outSeqs,
size_t outSeqsSize,
1548 const void* src,
size_t srcSize);
1593 ZSTDLIB_STATIC_API
size_t
1595 const ZSTD_Sequence* inSeqs,
size_t inSeqsSize,
1596 const void* src,
size_t srcSize);
1613 const void* src,
size_t srcSize,
unsigned magicVariant);
1627 const void* src,
size_t srcSize);
1732 void* workspace,
size_t workspaceSize,
1733 const void* dict,
size_t dictSize,
1734 ZSTD_dictLoadMethod_e dictLoadMethod,
1735 ZSTD_dictContentType_e dictContentType,
1736 ZSTD_compressionParameters cParams);
1739 void* workspace,
size_t workspaceSize,
1740 const void* dict,
size_t dictSize,
1741 ZSTD_dictLoadMethod_e dictLoadMethod,
1742 ZSTD_dictContentType_e dictContentType);
1750 typedef void* (*ZSTD_allocFunction) (
void* opaque,
size_t size);
1751 typedef void (*ZSTD_freeFunction) (
void* opaque,
void* address);
1752 typedef struct { ZSTD_allocFunction customAlloc; ZSTD_freeFunction customFree;
void* opaque; } ZSTD_customMem;
1755 __attribute__((__unused__))
1757 ZSTD_customMem
const ZSTD_defaultCMem = { NULL, NULL, NULL };
1765 ZSTD_dictLoadMethod_e dictLoadMethod,
1766 ZSTD_dictContentType_e dictContentType,
1767 ZSTD_compressionParameters cParams,
1768 ZSTD_customMem customMem);
1790 const void* dict,
size_t dictSize,
1791 ZSTD_dictLoadMethod_e dictLoadMethod,
1792 ZSTD_dictContentType_e dictContentType,
1793 const ZSTD_CCtx_params* cctxParams,
1797 const void* dict,
size_t dictSize,
1798 ZSTD_dictLoadMethod_e dictLoadMethod,
1799 ZSTD_dictContentType_e dictContentType,
1836 ZSTDLIB_STATIC_API ZSTD_compressionParameters
ZSTD_adjustCParams(ZSTD_compressionParameters cPar,
unsigned long long srcSize,
size_t dictSize);
1866 void*
dst,
size_t dstCapacity,
1867 const
void* src,
size_t srcSize,
1868 const
void* dict,
size_t dictSize,
1869 ZSTD_parameters params);
1878 void*
dst,
size_t dstCapacity,
1879 const
void* src,
size_t srcSize,
1881 ZSTD_frameParameters fParams);
1920 #define ZSTD_c_rsyncable ZSTD_c_experimentalParam1
1925 #define ZSTD_c_format ZSTD_c_experimentalParam2
1929 #define ZSTD_c_forceMaxWindow ZSTD_c_experimentalParam3
1935 #define ZSTD_c_forceAttachDict ZSTD_c_experimentalParam4
1947 #define ZSTD_c_literalCompressionMode ZSTD_c_experimentalParam5
1952 #define ZSTD_c_targetCBlockSize ZSTD_c_experimentalParam6
1958 #define ZSTD_c_srcSizeHint ZSTD_c_experimentalParam7
2014 #define ZSTD_c_enableDedicatedDictSearch ZSTD_c_experimentalParam8
2047 #define ZSTD_c_stableInBuffer ZSTD_c_experimentalParam9
2067 #define ZSTD_c_stableOutBuffer ZSTD_c_experimentalParam10
2078 #define ZSTD_c_blockDelimiters ZSTD_c_experimentalParam11
2095 #define ZSTD_c_validateSequences ZSTD_c_experimentalParam12
2106 #define ZSTD_c_useBlockSplitter ZSTD_c_experimentalParam13
2118 #define ZSTD_c_useRowMatchFinder ZSTD_c_experimentalParam14
2138 #define ZSTD_c_deterministicRefPrefix ZSTD_c_experimentalParam15
2161 #define ZSTD_c_prefetchCDictTables ZSTD_c_experimentalParam16
2175 #define ZSTD_c_enableSeqProducerFallback ZSTD_c_experimentalParam17
2187 #define ZSTD_c_maxBlockSize ZSTD_c_experimentalParam18
2211 #define ZSTD_c_searchForExternalRepcodes ZSTD_c_experimentalParam19
2283 ZSTD_CCtx* cctx,
const ZSTD_CCtx_params* params);
2293 void*
dst,
size_t dstCapacity,
size_t* dstPos,
2294 const void* src,
size_t srcSize,
size_t* srcPos,
2355 #define ZSTD_d_format ZSTD_d_experimentalParam1
2386 #define ZSTD_d_stableOutBuffer ZSTD_d_experimentalParam2
2397 #define ZSTD_d_forceIgnoreChecksum ZSTD_d_experimentalParam3
2420 #define ZSTD_d_refMultipleDDicts ZSTD_d_experimentalParam4
2431 #define ZSTD_d_disableHuffmanAssembly ZSTD_d_experimentalParam5
2452 void*
dst,
size_t dstCapacity,
size_t* dstPos,
2453 const
void* src,
size_t srcSize,
size_t* srcPos);
2481 unsigned long long pledgedSrcSize);
2498 const
void* dict,
size_t dictSize,
2516 const
void* dict,
size_t dictSize,
2517 ZSTD_parameters params,
2518 unsigned long long pledgedSrcSize);
2548 ZSTD_frameParameters fParams,
2549 unsigned long long pledgedSrcSize);
2575 unsigned long long ingested;
2576 unsigned long long consumed;
2577 unsigned long long produced;
2578 unsigned long long flushed;
2579 unsigned currentJobID;
2580 unsigned nbActiveWorkers;
2581 } ZSTD_frameProgression;
2617 ZSTD_DEPRECATED(
"use ZSTD_DCtx_reset + ZSTD_DCtx_loadDictionary, see zstd.h for detailed instructions")
2766 #define ZSTD_SEQUENCE_PRODUCER_ERROR ((size_t)(-1))
2768 typedef size_t ZSTD_sequenceProducer_F (
2769 void* sequenceProducerState,
2770 ZSTD_Sequence* outSeqs,
size_t outSeqsCapacity,
2771 const void* src,
size_t srcSize,
2772 const void* dict,
size_t dictSize,
2796 ZSTDLIB_STATIC_API
void
2799 void* sequenceProducerState,
2800 ZSTD_sequenceProducer_F* sequenceProducer
2848 ZSTD_DEPRECATED(
"The buffer-less API is deprecated in favor of the normal streaming API. See docs.")
2850 ZSTD_DEPRECATED("The buffer-less API is deprecated
in favor of the normal streaming API. See docs.")
2852 ZSTD_DEPRECATED("The buffer-less API is deprecated
in favor of the normal streaming API. See docs.")
2859 ZSTD_DEPRECATED("The buffer-less API is deprecated
in favor of the normal streaming API. See docs.")
2861 ZSTD_DEPRECATED("The buffer-less API is deprecated
in favor of the normal streaming API. See docs.")
2958 typedef enum { ZSTDnit_frameHeader, ZSTDnit_blockHeader, ZSTDnit_block, ZSTDnit_lastBlock, ZSTDnit_checksum, ZSTDnit_skippableFrame } ZSTD_nextInputType_e;
3007 ZSTD_DEPRECATED(
"The block API is deprecated in favor of the normal compression API. See docs.")
3018 #if defined (__cplusplus)
ZSTD_CCtx * ZSTD_initStaticCCtx(void *workspace, size_t workspaceSize)
size_t ZSTD_decompressBlock(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
@ ZSTD_c_experimentalParam18
@ ZSTD_c_compressionLevel
size_t ZSTD_estimateDStreamSize(size_t windowSize)
ZSTD_DDict * ZSTD_createDDict_advanced(const void *dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType, ZSTD_customMem customMem)
void ZSTD_copyDCtx(ZSTD_DCtx *dstDCtx, const ZSTD_DCtx *srcDCtx)
@ ZSTD_c_experimentalParam6
size_t ZSTD_checkCParams(ZSTD_compressionParameters cParams)
ZSTDLIB_API size_t ZSTD_CCtx_setParameter(ZSTD_CCtx *cctx, ZSTD_cParameter param, int value)
ZSTDLIB_API size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx *dctx, const void *prefix, size_t prefixSize)
ZSTDLIB_API size_t ZSTD_sizeof_DDict(const ZSTD_DDict *ddict)
ZSTDLIB_API size_t ZSTD_flushStream(ZSTD_CStream *zcs, ZSTD_outBuffer *output)
@ ZSTD_c_experimentalParam15
ZSTDLIB_API size_t ZSTD_freeCDict(ZSTD_CDict *CDict)
struct ZSTD_inBuffer_s ZSTD_inBuffer
ZSTDLIB_API size_t ZSTD_decompress_usingDict(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize)
ZSTDLIB_API int ZSTD_defaultCLevel(void)
unsigned ZSTD_isSkippableFrame(const void *buffer, size_t size)
@ ZSTD_c_experimentalParam10
ZSTDLIB_API size_t ZSTD_CStreamOutSize(void)
ZSTD_DDict * ZSTD_createDDict_byReference(const void *dictBuffer, size_t dictSize)
size_t ZSTD_DCtx_refPrefix_advanced(ZSTD_DCtx *dctx, const void *prefix, size_t prefixSize, ZSTD_dictContentType_e dictContentType)
#define ZSTD_DEPRECATED(message)
ZSTDLIB_API size_t ZSTD_DCtx_reset(ZSTD_DCtx *dctx, ZSTD_ResetDirective reset)
size_t ZSTD_compressBegin_usingCDict_advanced(ZSTD_CCtx *const cctx, const ZSTD_CDict *const cdict, ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize)
ZSTDLIB_API int ZSTD_minCLevel(void)
ZSTD_frameProgression ZSTD_getFrameProgression(const ZSTD_CCtx *cctx)
ZSTDLIB_API size_t ZSTD_freeDDict(ZSTD_DDict *ddict)
@ ZSTD_c_experimentalParam4
ZSTD_compressionParameters ZSTD_adjustCParams(ZSTD_compressionParameters cPar, unsigned long long srcSize, size_t dictSize)
size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx *dctx)
size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params *cctxParams, int compressionLevel)
size_t ZSTD_compressBegin(ZSTD_CCtx *cctx, int compressionLevel)
ZSTDLIB_API unsigned long long ZSTD_getDecompressedSize(const void *src, size_t srcSize)
size_t ZSTD_estimateCDictSize(size_t dictSize, int compressionLevel)
size_t ZSTD_compress_usingCDict_advanced(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_CDict *cdict, ZSTD_frameParameters fParams)
unsigned ZSTD_isFrame(const void *buffer, size_t size)
ZSTDLIB_API size_t ZSTD_compressStream(ZSTD_CStream *zcs, ZSTD_outBuffer *output, ZSTD_inBuffer *input)
ZSTDLIB_API ZSTD_CCtx * ZSTD_createCCtx(void)
size_t ZSTD_compressBegin_usingDict(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, int compressionLevel)
ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_CDict *cdict)
@ ZSTD_c_experimentalParam13
constexpr auto in(type t, int set) -> bool
ZSTDLIB_API ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam)
size_t ZSTD_CCtxParams_init_advanced(ZSTD_CCtx_params *cctxParams, ZSTD_parameters params)
const ZSTD_DDict * ZSTD_initStaticDDict(void *sBuffer, size_t sBufferSize, const void *dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType)
ZSTDLIB_API size_t ZSTD_decompressDCtx(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
size_t ZSTD_initDStream_usingDict(ZSTD_DStream *zds, const void *dict, size_t dictSize)
@ ZSTD_c_experimentalParam2
size_t ZSTD_CCtx_setFParams(ZSTD_CCtx *cctx, ZSTD_frameParameters fparams)
ZSTD_CDict * ZSTD_createCDict_byReference(const void *dict, size_t dictSize, int compressionLevel)
ZSTDLIB_API size_t ZSTD_freeDStream(ZSTD_DStream *zds)
ZSTD_CDict * ZSTD_createCDict_advanced2(const void *dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType, const ZSTD_CCtx_params *originalCctxParams, ZSTD_customMem customMem)
ZSTDLIB_API size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize)
ZSTD_CCtx_params * ZSTD_createCCtxParams(void)
ZSTDLIB_API unsigned ZSTD_isError(size_t code)
@ ZSTD_c_experimentalParam14
size_t ZSTD_decompressBegin_usingDDict(ZSTD_DCtx *dctx, const ZSTD_DDict *ddict)
ZSTDLIB_API unsigned ZSTD_getDictID_fromDict(const void *dict, size_t dictSize)
size_t ZSTD_estimateCCtxSize_usingCCtxParams(const ZSTD_CCtx_params *params)
size_t ZSTD_CCtx_refPrefix_advanced(ZSTD_CCtx *cctx, const void *prefix, size_t prefixSize, ZSTD_dictContentType_e dictContentType)
size_t ZSTD_compressSequences(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const ZSTD_Sequence *inSeqs, size_t inSeqsSize, const void *src, size_t srcSize)
size_t ZSTD_writeSkippableFrame(void *dst, size_t dstCapacity, const void *src, size_t srcSize, unsigned magicVariant)
ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, unsigned long long srcSizeHint, size_t dictSize)
const ZSTDLIB_API char * ZSTD_getErrorName(size_t code)
@ ZSTD_c_experimentalParam5
ZSTDLIB_API unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize)
@ ZSTD_d_experimentalParam3
size_t ZSTD_initCStream_usingCDict_advanced(ZSTD_CStream *zcs, const ZSTD_CDict *cdict, ZSTD_frameParameters fParams, unsigned long long pledgedSrcSize)
@ ZSTD_c_experimentalParam12
size_t ZSTD_initCStream_usingCDict(ZSTD_CStream *zcs, const ZSTD_CDict *cdict)
span_constexpr std::size_t size(span< T, Extent > const &spn)
ZSTDLIB_API ZSTD_CStream * ZSTD_createCStream(void)
@ ZSTD_d_experimentalParam1
ZSTD_DCtx * ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
ZSTDLIB_API size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx *dctx, const void *dict, size_t dictSize)
size_t ZSTD_DCtx_setFormat(ZSTD_DCtx *dctx, ZSTD_format_e format)
ZSTDLIB_API size_t ZSTD_findFrameCompressedSize(const void *src, size_t srcSize)
ZSTDLIB_API unsigned ZSTD_getDictID_fromFrame(const void *src, size_t srcSize)
size_t ZSTD_getFrameHeader_advanced(ZSTD_frameHeader *zfhPtr, const void *src, size_t srcSize, ZSTD_format_e format)
size_t ZSTD_getBlockSize(const ZSTD_CCtx *cctx)
size_t ZSTD_estimateDStreamSize_fromFrame(const void *src, size_t srcSize)
ZSTDLIB_API size_t ZSTD_DCtx_setParameter(ZSTD_DCtx *dctx, ZSTD_dParameter param, int value)
@ ZSTD_c_experimentalParam19
static const char * output
size_t ZSTD_generateSequences(ZSTD_CCtx *zc, ZSTD_Sequence *outSeqs, size_t outSeqsSize, const void *src, size_t srcSize)
ZSTDLIB_API size_t ZSTD_compress_usingDict(ZSTD_CCtx *ctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, int compressionLevel)
ZSTDLIB_API ZSTD_DCtx * ZSTD_createDCtx(void)
size_t ZSTD_compressBlock(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
ZSTDLIB_API size_t ZSTD_decompress(void *dst, size_t dstCapacity, const void *src, size_t compressedSize)
size_t ZSTD_CCtxParams_getParameter(ZSTD_CCtx_params const *CCtxParams, ZSTD_cParameter param, int *value)
@ ZSTD_c_experimentalParam1
size_t ZSTD_sequenceBound(size_t srcSize)
size_t ZSTD_mergeBlockDelimiters(ZSTD_Sequence *sequences, size_t seqsSize)
@ ZSTD_c_experimentalParam9
void ZSTD_registerSequenceProducer(ZSTD_CCtx *zc, void *mState, ZSTD_sequenceProducer_F *mFinder)
size_t ZSTD_estimateCCtxSize(int compressionLevel)
size_t ZSTD_decompressStream_simpleArgs(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, size_t *dstPos, const void *src, size_t srcSize, size_t *srcPos)
ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict)
ZSTDLIB_API size_t ZSTD_initDStream(ZSTD_DStream *zds)
size_t ZSTD_DCtx_setMaxWindowSize(ZSTD_DCtx *dctx, size_t maxWindowSize)
ZSTDLIB_API ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam)
size_t ZSTD_CCtx_setCParams(ZSTD_CCtx *cctx, ZSTD_compressionParameters cparams)
POOL_ctx * ZSTD_createThreadPool(size_t numThreads)
ZSTDLIB_API size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx *dctx)
@ ZSTD_c_experimentalParam7
@ ZSTD_d_experimentalParam5
size_t ZSTD_CCtxParams_reset(ZSTD_CCtx_params *params)
size_t ZSTD_CCtx_refThreadPool(ZSTD_CCtx *cctx, ZSTD_threadPool *pool)
unsigned long long ZSTD_decompressBound(const void *src, size_t srcSize)
ZSTDLIB_API unsigned ZSTD_versionNumber(void)
size_t ZSTD_CCtxParams_setParameter(ZSTD_CCtx_params *CCtxParams, ZSTD_cParameter param, int value)
ZSTD_CStream * ZSTD_createCStream_advanced(ZSTD_customMem customMem)
ZSTDLIB_API size_t ZSTD_CStreamInSize(void)
@ ZSTD_c_experimentalParam16
ZSTD_DStream * ZSTD_createDStream_advanced(ZSTD_customMem customMem)
@ ZSTD_c_experimentalParam3
size_t ZSTD_estimateCStreamSize_usingCCtxParams(const ZSTD_CCtx_params *params)
ZSTDLIB_API unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict *cdict)
size_t ZSTD_CCtx_getParameter(ZSTD_CCtx const *cctx, ZSTD_cParameter param, int *value)
ZSTDLIB_API size_t ZSTD_compress2(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
auto format(const text_style &ts, const S &format_str, const Args &... args) -> std::basic_string< Char >
size_t ZSTD_estimateCStreamSize(int compressionLevel)
ZSTD_DStream * ZSTD_initStaticDStream(void *workspace, size_t workspaceSize)
char int int compressionLevel
ZSTDLIB_API int ZSTD_maxCLevel(void)
@ ZSTD_c_experimentalParam8
ZSTD_nextInputType_e ZSTD_nextInputType(ZSTD_DCtx *dctx)
@ ZSTD_reset_session_only
struct ZSTD_outBuffer_s ZSTD_outBuffer
size_t ZSTD_decompressContinue(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
size_t ZSTD_decompressBegin(ZSTD_DCtx *dctx)
static void block(LexState *ls)
size_t ZSTD_estimateCDictSize_advanced(size_t dictSize, ZSTD_compressionParameters cParams, ZSTD_dictLoadMethod_e dictLoadMethod)
ZSTDLIB_API size_t ZSTD_sizeof_CDict(const ZSTD_CDict *cdict)
size_t ZSTD_CCtx_loadDictionary_byReference(ZSTD_CCtx *cctx, const void *dict, size_t dictSize)
ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, int compressionLevel)
ZSTDLIB_API size_t ZSTD_DStreamInSize(void)
size_t ZSTD_toFlushNow(ZSTD_CCtx *cctx)
@ ZSTD_c_ldmBucketSizeLog
size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict)
size_t ZSTD_readSkippableFrame(void *dst, size_t dstCapacity, unsigned *magicVariant, const void *src, size_t srcSize)
@ ZSTD_c_experimentalParam17
ZSTDLIB_API ZSTD_DDict * ZSTD_createDDict(const void *dictBuffer, size_t dictSize)
size_t ZSTD_copyCCtx(ZSTD_CCtx *dstCCtx, const ZSTD_CCtx *srcCCtx, unsigned long long pledgedSrcSize)
size_t ZSTD_compressBegin_advanced(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize)
size_t ZSTD_decodingBufferSize_min(unsigned long long windowSize, unsigned long long frameContentSize)
ZSTD_CCtx * ZSTD_createCCtx_advanced(ZSTD_customMem customMem)
size_t ZSTD_decompressionMargin(void const *src, size_t srcSize)
ZSTDLIB_API size_t ZSTD_freeDCtx(ZSTD_DCtx *dctx)
ZSTD_DCtx * ZSTD_initStaticDCtx(void *workspace, size_t workspaceSize)
ZSTD_CDict * ZSTD_createCDict_advanced(const void *dictBuffer, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType, ZSTD_compressionParameters cParams, ZSTD_customMem customMem)
ZSTDLIB_API size_t ZSTD_freeCStream(ZSTD_CStream *zcs)
ZSTDLIB_API size_t ZSTD_endStream(ZSTD_CStream *zcs, ZSTD_outBuffer *output)
size_t ZSTD_insertBlock(ZSTD_DCtx *dctx, const void *blockStart, size_t blockSize)
size_t ZSTD_DCtx_loadDictionary_advanced(ZSTD_DCtx *dctx, const void *dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType)
size_t ZSTD_compress_advanced(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, ZSTD_parameters params)
size_t ZSTD_CCtx_loadDictionary_advanced(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType)
size_t ZSTD_frameHeaderSize(const void *src, size_t srcSize)
size_t ZSTD_DCtx_getParameter(ZSTD_DCtx *dctx, ZSTD_dParameter param, int *value)
ZSTDLIB_API size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx *cctx, const void *prefix, size_t prefixSize)
ZSTDLIB_API size_t ZSTD_compressBound(size_t srcSize)
ZSTDLIB_API ZSTD_CDict * ZSTD_createCDict(const void *dictBuffer, size_t dictSize, int compressionLevel)
ZSTDLIB_API size_t ZSTD_compress(void *dst, size_t dstCapacity, const void *src, size_t srcSize, int compressionLevel)
size_t ZSTD_resetCStream(ZSTD_CStream *zcs, unsigned long long pss)
size_t ZSTD_CCtx_setParams(ZSTD_CCtx *cctx, ZSTD_parameters params)
@ ZSTD_d_experimentalParam4
unsigned long long ZSTD_findDecompressedSize(const void *src, size_t srcSize)
ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx *cctx)
size_t ZSTD_estimateCStreamSize_usingCParams(ZSTD_compressionParameters cParams)
size_t ZSTD_estimateCCtxSize_usingCParams(ZSTD_compressionParameters cParams)
ZSTDLIB_API size_t ZSTD_decompressStream(ZSTD_DStream *zds, ZSTD_outBuffer *output, ZSTD_inBuffer *input)
@ ZSTD_d_experimentalParam2
size_t ZSTD_compressStream2_simpleArgs(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, size_t *dstPos, const void *src, size_t srcSize, size_t *srcPos, ZSTD_EndDirective endOp)
size_t ZSTD_CCtx_setParametersUsingCCtxParams(ZSTD_CCtx *cctx, const ZSTD_CCtx_params *params)
ZSTD_CStream * ZSTD_initStaticCStream(void *workspace, size_t workspaceSize)
ZSTDLIB_API size_t ZSTD_decompress_usingDDict(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_DDict *ddict)
ZSTDLIB_API size_t ZSTD_DCtx_refDDict(ZSTD_DCtx *dctx, const ZSTD_DDict *ddict)
size_t ZSTD_initDStream_usingDDict(ZSTD_DStream *dctx, const ZSTD_DDict *ddict)
const ZSTDLIB_API char * ZSTD_versionString(void)
size_t ZSTD_initCStream_advanced(ZSTD_CStream *zcs, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long long pss)
ZSTDLIB_API size_t ZSTD_DStreamOutSize(void)
ZSTDLIB_API unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict *ddict)
@ ZSTD_reset_session_and_parameters
ZSTDLIB_API size_t ZSTD_initCStream(ZSTD_CStream *zcs, int compressionLevel)
size_t ZSTD_estimateDDictSize(size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod)
ZSTDLIB_API size_t ZSTD_sizeof_DStream(const ZSTD_DStream *zds)
size_t ZSTD_compressContinue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
size_t ZSTD_initCStream_usingDict(ZSTD_CStream *zcs, const void *dict, size_t dictSize, int compressionLevel)
ZSTD_parameters ZSTD_getParams(int compressionLevel, unsigned long long srcSizeHint, size_t dictSize)
const ZSTD_CDict * ZSTD_initStaticCDict(void *workspace, size_t workspaceSize, const void *dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType, ZSTD_compressionParameters cParams)
void ZSTD_freeThreadPool(ZSTD_threadPool *pool)
size_t ZSTD_compressEnd(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
size_t ZSTD_getFrameHeader(ZSTD_frameHeader *zfhPtr, const void *src, size_t srcSize)
size_t ZSTD_decompressBegin_usingDict(ZSTD_DCtx *dctx, const void *dict, size_t dictSize)
size_t ZSTD_initCStream_srcSize(ZSTD_CStream *zcs, int compressionLevel, unsigned long long pss)
@ ZSTD_c_enableLongDistanceMatching
ZSTDLIB_API ZSTD_DStream * ZSTD_createDStream(void)
ZSTDLIB_API size_t ZSTD_CCtx_reset(ZSTD_CCtx *cctx, ZSTD_ResetDirective reset)
size_t ZSTD_DCtx_loadDictionary_byReference(ZSTD_DCtx *dctx, const void *dict, size_t dictSize)
ZSTDLIB_API size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx *cctx)
size_t ZSTD_resetDStream(ZSTD_DStream *dctx)
ZSTDLIB_API size_t ZSTD_compressStream2(ZSTD_CCtx *cctx, ZSTD_outBuffer *output, ZSTD_inBuffer *input, ZSTD_EndDirective endOp)
ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx *cctx, unsigned long long pledgedSrcSize)
@ ZSTD_c_experimentalParam11
ZSTDLIB_API size_t ZSTD_sizeof_CStream(const ZSTD_CStream *zcs)
size_t ZSTD_estimateDCtxSize(void)
size_t ZSTD_freeCCtxParams(ZSTD_CCtx_params *params)
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49