10#if defined (__cplusplus)
23#ifndef ZSTDLIB_VISIBILITY
24# if defined(__GNUC__) && (__GNUC__ >= 4)
25# define ZSTDLIB_VISIBILITY __attribute__ ((visibility ("default")))
27# define ZSTDLIB_VISIBILITY
30#if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1)
31# define ZSTDLIB_API __declspec(dllexport) ZSTDLIB_VISIBILITY
32#elif defined(ZSTD_DLL_IMPORT) && (ZSTD_DLL_IMPORT==1)
33# define ZSTDLIB_API __declspec(dllimport) ZSTDLIB_VISIBILITY
35# define ZSTDLIB_API ZSTDLIB_VISIBILITY
73#define ZSTD_VERSION_MAJOR 1
74#define ZSTD_VERSION_MINOR 4
75#define ZSTD_VERSION_RELEASE 5
77#define ZSTD_VERSION_NUMBER (ZSTD_VERSION_MAJOR *100*100 + ZSTD_VERSION_MINOR *100 + ZSTD_VERSION_RELEASE)
80#define ZSTD_LIB_VERSION ZSTD_VERSION_MAJOR.ZSTD_VERSION_MINOR.ZSTD_VERSION_RELEASE
81#define ZSTD_QUOTE(str) #str
82#define ZSTD_EXPAND_AND_QUOTE(str) ZSTD_QUOTE(str)
83#define ZSTD_VERSION_STRING ZSTD_EXPAND_AND_QUOTE(ZSTD_LIB_VERSION)
89#ifndef ZSTD_CLEVEL_DEFAULT
90# define ZSTD_CLEVEL_DEFAULT 3
98#define ZSTD_MAGICNUMBER 0xFD2FB528
99#define ZSTD_MAGIC_DICTIONARY 0xEC30A437
100#define ZSTD_MAGIC_SKIPPABLE_START 0x184D2A50
101#define ZSTD_MAGIC_SKIPPABLE_MASK 0xFFFFFFF0
103#define ZSTD_BLOCKSIZELOG_MAX 17
104#define ZSTD_BLOCKSIZE_MAX (1<<ZSTD_BLOCKSIZELOG_MAX)
117 const void*
src,
size_t srcSize,
118 int compressionLevel);
127 const void*
src,
size_t compressedSize);
152#define ZSTD_CONTENTSIZE_UNKNOWN (0ULL - 1)
153#define ZSTD_CONTENTSIZE_ERROR (0ULL - 2)
174#define ZSTD_COMPRESSBOUND(srcSize) ((srcSize) + ((srcSize)>>8) + (((srcSize) < (128<<10)) ? (((128<<10) - (srcSize)) >> 11) : 0))
208 void*
dst,
size_t dstCapacity,
209 const void*
src,
size_t srcSize,
210 int compressionLevel);
228 void*
dst,
size_t dstCapacity,
229 const void*
src,
size_t srcSize);
497 void*
dst,
size_t dstCapacity,
498 const void*
src,
size_t srcSize);
793 void*
dst,
size_t dstCapacity,
794 const void*
src,
size_t srcSize,
795 const void* dict,
size_t dictSize,
796 int compressionLevel);
805 void*
dst,
size_t dstCapacity,
806 const void*
src,
size_t srcSize,
807 const void* dict,
size_t dictSize);
840 void*
dst,
size_t dstCapacity,
841 const void*
src,
size_t srcSize,
860 void*
dst,
size_t dstCapacity,
861 const void*
src,
size_t srcSize,
956 const void* prefix,
size_t prefixSize);
1003 const void* prefix,
size_t prefixSize);
1029#if defined(ZSTD_STATIC_LINKING_ONLY) && !defined(ZSTD_H_ZSTD_STATIC_LINKING_ONLY)
1030#define ZSTD_H_ZSTD_STATIC_LINKING_ONLY
1042#define ZSTD_FRAMEHEADERSIZE_PREFIX(format) ((format) == ZSTD_f_zstd1 ? 5 : 1)
1043#define ZSTD_FRAMEHEADERSIZE_MIN(format) ((format) == ZSTD_f_zstd1 ? 6 : 2)
1044#define ZSTD_FRAMEHEADERSIZE_MAX 18
1045#define ZSTD_SKIPPABLEHEADERSIZE 8
1048#define ZSTD_WINDOWLOG_MAX_32 30
1049#define ZSTD_WINDOWLOG_MAX_64 31
1050#define ZSTD_WINDOWLOG_MAX ((int)(sizeof(size_t) == 4 ? ZSTD_WINDOWLOG_MAX_32 : ZSTD_WINDOWLOG_MAX_64))
1051#define ZSTD_WINDOWLOG_MIN 10
1052#define ZSTD_HASHLOG_MAX ((ZSTD_WINDOWLOG_MAX < 30) ? ZSTD_WINDOWLOG_MAX : 30)
1053#define ZSTD_HASHLOG_MIN 6
1054#define ZSTD_CHAINLOG_MAX_32 29
1055#define ZSTD_CHAINLOG_MAX_64 30
1056#define ZSTD_CHAINLOG_MAX ((int)(sizeof(size_t) == 4 ? ZSTD_CHAINLOG_MAX_32 : ZSTD_CHAINLOG_MAX_64))
1057#define ZSTD_CHAINLOG_MIN ZSTD_HASHLOG_MIN
1058#define ZSTD_SEARCHLOG_MAX (ZSTD_WINDOWLOG_MAX-1)
1059#define ZSTD_SEARCHLOG_MIN 1
1060#define ZSTD_MINMATCH_MAX 7
1061#define ZSTD_MINMATCH_MIN 3
1062#define ZSTD_TARGETLENGTH_MAX ZSTD_BLOCKSIZE_MAX
1063#define ZSTD_TARGETLENGTH_MIN 0
1064#define ZSTD_STRATEGY_MIN ZSTD_fast
1065#define ZSTD_STRATEGY_MAX ZSTD_btultra2
1068#define ZSTD_OVERLAPLOG_MIN 0
1069#define ZSTD_OVERLAPLOG_MAX 9
1071#define ZSTD_WINDOWLOG_LIMIT_DEFAULT 27
1079#define ZSTD_LDM_HASHLOG_MIN ZSTD_HASHLOG_MIN
1080#define ZSTD_LDM_HASHLOG_MAX ZSTD_HASHLOG_MAX
1081#define ZSTD_LDM_MINMATCH_MIN 4
1082#define ZSTD_LDM_MINMATCH_MAX 4096
1083#define ZSTD_LDM_BUCKETSIZELOG_MIN 1
1084#define ZSTD_LDM_BUCKETSIZELOG_MAX 8
1085#define ZSTD_LDM_HASHRATELOG_MIN 0
1086#define ZSTD_LDM_HASHRATELOG_MAX (ZSTD_WINDOWLOG_MAX - ZSTD_HASHLOG_MIN)
1089#define ZSTD_TARGETCBLOCKSIZE_MIN 64
1090#define ZSTD_TARGETCBLOCKSIZE_MAX ZSTD_BLOCKSIZE_MAX
1091#define ZSTD_SRCSIZEHINT_MIN 0
1092#define ZSTD_SRCSIZEHINT_MAX INT_MAX
1095#define ZSTD_HASHLOG3_MAX 17
1103 unsigned int matchPos;
1112 unsigned int litLength;
1113 unsigned int matchLength;
1126 unsigned targetLength;
1128} ZSTD_compressionParameters;
1131 int contentSizeFlag;
1134} ZSTD_frameParameters;
1137 ZSTD_compressionParameters cParams;
1138 ZSTD_frameParameters fParams;
1143 ZSTD_dct_rawContent = 1,
1144 ZSTD_dct_fullDict = 2
1145} ZSTD_dictContentType_e;
1148 ZSTD_dlm_byCopy = 0,
1150} ZSTD_dictLoadMethod_e;
1154 ZSTD_f_zstd1_magicless = 1
1192 ZSTD_dictDefaultAttach = 0,
1193 ZSTD_dictForceAttach = 1,
1194 ZSTD_dictForceCopy = 2,
1195 ZSTD_dictForceLoad = 3
1196} ZSTD_dictAttachPref_e;
1202 ZSTD_lcm_huffman = 1,
1204 ZSTD_lcm_uncompressed = 2
1205} ZSTD_literalCompressionMode_e;
1263 size_t outSeqsSize,
const void*
src,
size_t srcSize);
1354 void* workspace,
size_t workspaceSize,
1355 const void* dict,
size_t dictSize,
1356 ZSTD_dictLoadMethod_e dictLoadMethod,
1357 ZSTD_dictContentType_e dictContentType,
1358 ZSTD_compressionParameters cParams);
1361 void* workspace,
size_t workspaceSize,
1362 const void* dict,
size_t dictSize,
1363 ZSTD_dictLoadMethod_e dictLoadMethod,
1364 ZSTD_dictContentType_e dictContentType);
1372typedef void* (*ZSTD_allocFunction) (
void* opaque,
size_t size);
1373typedef void (*ZSTD_freeFunction) (
void* opaque,
void*
address);
1374typedef struct { ZSTD_allocFunction customAlloc; ZSTD_freeFunction customFree;
void* opaque; } ZSTD_customMem;
1375static ZSTD_customMem
const ZSTD_defaultCMem = {
NULL,
NULL,
NULL };
1383 ZSTD_dictLoadMethod_e dictLoadMethod,
1384 ZSTD_dictContentType_e dictContentType,
1385 ZSTD_compressionParameters cParams,
1386 ZSTD_customMem customMem);
1389 ZSTD_dictLoadMethod_e dictLoadMethod,
1390 ZSTD_dictContentType_e dictContentType,
1391 ZSTD_customMem customMem);
1410ZSTDLIB_API ZSTD_compressionParameters
ZSTD_getCParams(
int compressionLevel,
unsigned long long estimatedSrcSize,
size_t dictSize);
1435 void*
dst,
size_t dstCapacity,
1436 const void*
src,
size_t srcSize,
1437 const void* dict,
size_t dictSize,
1445 void*
dst,
size_t dstCapacity,
1446 const void*
src,
size_t srcSize,
1448 ZSTD_frameParameters fParams);
1487 #define ZSTD_c_rsyncable ZSTD_c_experimentalParam1
1492#define ZSTD_c_format ZSTD_c_experimentalParam2
1496#define ZSTD_c_forceMaxWindow ZSTD_c_experimentalParam3
1502#define ZSTD_c_forceAttachDict ZSTD_c_experimentalParam4
1508#define ZSTD_c_literalCompressionMode ZSTD_c_experimentalParam5
1513#define ZSTD_c_targetCBlockSize ZSTD_c_experimentalParam6
1519#define ZSTD_c_srcSizeHint ZSTD_c_experimentalParam7
1599 void*
dst,
size_t dstCapacity,
size_t* dstPos,
1600 const void*
src,
size_t srcSize,
size_t* srcPos,
1654#define ZSTD_d_format ZSTD_d_experimentalParam1
1685#define ZSTD_d_stableOutBuffer ZSTD_d_experimentalParam2
1702 void*
dst,
size_t dstCapacity,
size_t* dstPos,
1703 const void*
src,
size_t srcSize,
size_t* srcPos);
1728 int compressionLevel,
1729 unsigned long long pledgedSrcSize);
1745 const void* dict,
size_t dictSize,
1746 int compressionLevel);
1765 const void* dict,
size_t dictSize,
1767 unsigned long long pledgedSrcSize);
1797 ZSTD_frameParameters fParams,
1798 unsigned long long pledgedSrcSize);
1819 unsigned long long ingested;
1821 unsigned long long produced;
1822 unsigned long long flushed;
1823 unsigned currentJobID;
1824 unsigned nbActiveWorkers;
1825} ZSTD_frameProgression;
2010typedef enum { ZSTD_frame, ZSTD_skippableFrame } ZSTD_frameType_e;
2012 unsigned long long frameContentSize;
2013 unsigned long long windowSize;
2014 unsigned blockSizeMax;
2015 ZSTD_frameType_e frameType;
2016 unsigned headerSize;
2018 unsigned checksumFlag;
2042typedef enum { ZSTDnit_frameHeader, ZSTDnit_blockHeader, ZSTDnit_block, ZSTDnit_lastBlock, ZSTDnit_checksum, ZSTDnit_skippableFrame } ZSTD_nextInputType_e;
2088#if defined (__cplusplus)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
GLenum const GLfloat * params
GLenum GLenum GLenum input
ZSTDLIB_API size_t ZSTD_decompress(void *dst, size_t dstCapacity, const void *src, size_t compressedSize)
ZSTDLIB_API unsigned long long ZSTD_getDecompressedSize(const void *src, size_t srcSize)
ZSTDLIB_API size_t ZSTD_compressBound(size_t srcSize)
ZSTDLIB_API size_t ZSTD_decompressDCtx(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
ZSTDLIB_API size_t ZSTD_initCStream(ZSTD_CStream *zcs, int compressionLevel)
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_compress(void *dst, size_t dstCapacity, const void *src, size_t srcSize, int compressionLevel)
struct ZSTD_inBuffer_s ZSTD_inBuffer
ZSTDLIB_API size_t ZSTD_DCtx_setParameter(ZSTD_DCtx *dctx, ZSTD_dParameter param, int value)
ZSTDLIB_API size_t ZSTD_initDStream(ZSTD_DStream *zds)
ZSTDLIB_API ZSTD_DDict * ZSTD_createDDict(const void *dictBuffer, size_t dictSize)
ZSTDLIB_API size_t ZSTD_CStreamInSize(void)
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_CCtx_loadDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize)
ZSTDLIB_API size_t ZSTD_sizeof_CStream(const ZSTD_CStream *zcs)
ZSTDLIB_API size_t ZSTD_compress2(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
@ ZSTD_c_experimentalParam2
@ ZSTD_c_experimentalParam4
@ ZSTD_c_experimentalParam1
@ ZSTD_c_experimentalParam3
@ ZSTD_c_enableLongDistanceMatching
@ ZSTD_c_compressionLevel
@ ZSTD_c_experimentalParam5
@ ZSTD_c_experimentalParam6
@ ZSTD_c_ldmBucketSizeLog
@ ZSTD_c_experimentalParam7
ZSTDLIB_API size_t ZSTD_compressStream2(ZSTD_CCtx *cctx, ZSTD_outBuffer *output, ZSTD_inBuffer *input, ZSTD_EndDirective endOp)
ZSTDLIB_API size_t ZSTD_sizeof_DStream(const ZSTD_DStream *zds)
ZSTDLIB_API size_t ZSTD_freeDCtx(ZSTD_DCtx *dctx)
ZSTDLIB_API size_t ZSTD_DStreamOutSize(void)
ZSTDLIB_API size_t ZSTD_DStreamInSize(void)
ZSTDLIB_API unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize)
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)
ZSTDLIB_API int ZSTD_minCLevel(void)
ZSTDLIB_API size_t ZSTD_compressStream(ZSTD_CStream *zcs, ZSTD_outBuffer *output, ZSTD_inBuffer *input)
ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx *cctx)
ZSTDLIB_API size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx *dctx, const void *prefix, size_t prefixSize)
ZSTDLIB_API size_t ZSTD_findFrameCompressedSize(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)
ZSTDLIB_API size_t ZSTD_freeCDict(ZSTD_CDict *CDict)
@ ZSTD_d_experimentalParam1
@ ZSTD_d_experimentalParam2
ZSTDLIB_API size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx *dctx)
ZSTDLIB_API size_t ZSTD_sizeof_CDict(const ZSTD_CDict *cdict)
ZSTDLIB_API size_t ZSTD_freeCStream(ZSTD_CStream *zcs)
struct ZSTD_outBuffer_s ZSTD_outBuffer
ZSTDLIB_API size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx *dctx, const void *dict, size_t dictSize)
ZSTDLIB_API size_t ZSTD_decompressStream(ZSTD_DStream *zds, ZSTD_outBuffer *output, ZSTD_inBuffer *input)
ZSTDLIB_API size_t ZSTD_DCtx_reset(ZSTD_DCtx *dctx, ZSTD_ResetDirective reset)
ZSTDLIB_API ZSTD_CDict * ZSTD_createCDict(const void *dictBuffer, size_t dictSize, int compressionLevel)
ZSTDLIB_API size_t ZSTD_freeDDict(ZSTD_DDict *ddict)
ZSTDLIB_API size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx *cctx)
ZSTDLIB_API size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx *cctx, const void *prefix, size_t prefixSize)
ZSTDLIB_API size_t ZSTD_CCtx_setParameter(ZSTD_CCtx *cctx, ZSTD_cParameter param, int value)
ZSTDLIB_API size_t ZSTD_flushStream(ZSTD_CStream *zcs, ZSTD_outBuffer *output)
ZSTDLIB_API unsigned ZSTD_getDictID_fromDict(const void *dict, size_t dictSize)
ZSTDLIB_API const char * ZSTD_getErrorName(size_t code)
ZSTDLIB_API ZSTD_DStream * ZSTD_createDStream(void)
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 unsigned ZSTD_getDictID_fromFrame(const void *src, size_t srcSize)
ZSTDLIB_API ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam)
ZSTDLIB_API unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict *ddict)
ZSTDLIB_API size_t ZSTD_CCtx_reset(ZSTD_CCtx *cctx, ZSTD_ResetDirective reset)
ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict)
ZSTDLIB_API ZSTD_CStream * ZSTD_createCStream(void)
ZSTDLIB_API size_t ZSTD_endStream(ZSTD_CStream *zcs, ZSTD_outBuffer *output)
ZSTDLIB_API ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam)
@ ZSTD_reset_session_only
@ ZSTD_reset_session_and_parameters
ZSTDLIB_API size_t ZSTD_freeDStream(ZSTD_DStream *zds)
ZSTDLIB_API const char * ZSTD_versionString(void)
ZSTDLIB_API unsigned ZSTD_versionNumber(void)
ZSTDLIB_API size_t ZSTD_CStreamOutSize(void)
ZSTDLIB_API size_t ZSTD_DCtx_refDDict(ZSTD_DCtx *dctx, const ZSTD_DDict *ddict)
ZSTDLIB_API size_t ZSTD_sizeof_DDict(const ZSTD_DDict *ddict)
ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx *cctx, unsigned long long pledgedSrcSize)
ZSTDLIB_API ZSTD_CCtx * ZSTD_createCCtx(void)
ZSTDLIB_API int ZSTD_maxCLevel(void)
size_t ZSTD_compressBegin_usingDict(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, int compressionLevel)
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_initCStream_usingCDict(ZSTD_CStream *zcs, const ZSTD_CDict *cdict)
size_t ZSTD_getBlockSize(const ZSTD_CCtx *cctx)
ZSTD_CCtx * ZSTD_createCCtx_advanced(ZSTD_customMem customMem)
size_t ZSTD_estimateCCtxSize_usingCParams(ZSTD_compressionParameters cParams)
size_t ZSTD_freeCCtxParams(ZSTD_CCtx_params *params)
size_t ZSTD_compressBegin(ZSTD_CCtx *cctx, int compressionLevel)
size_t ZSTD_compressBlock(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
size_t ZSTD_checkCParams(ZSTD_compressionParameters cParams)
size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict)
size_t ZSTD_getSequences(ZSTD_CCtx *zc, ZSTD_Sequence *outSeqs, size_t outSeqsSize, const void *src, size_t srcSize)
ZSTD_CStream * ZSTD_initStaticCStream(void *workspace, size_t workspaceSize)
size_t ZSTD_estimateCStreamSize_usingCCtxParams(const ZSTD_CCtx_params *params)
size_t ZSTD_CCtx_getParameter(ZSTD_CCtx *cctx, ZSTD_cParameter param, int *value)
ZSTD_CDict * ZSTD_createCDict_byReference(const void *dict, size_t dictSize, int compressionLevel)
size_t ZSTD_estimateCCtxSize(int compressionLevel)
ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, unsigned long long srcSizeHint, size_t dictSize)
ZSTD_CCtx * ZSTD_initStaticCCtx(void *workspace, size_t workspaceSize)
size_t ZSTD_initCStream_usingCDict_advanced(ZSTD_CStream *zcs, const ZSTD_CDict *cdict, ZSTD_frameParameters fParams, unsigned long long pledgedSrcSize)
size_t ZSTD_estimateCDictSize_advanced(size_t dictSize, ZSTD_compressionParameters cParams, ZSTD_dictLoadMethod_e dictLoadMethod)
size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params *cctxParams, int compressionLevel)
ZSTDLIB_API size_t ZSTD_CCtx_loadDictionary_byReference(ZSTD_CCtx *cctx, const void *dict, size_t dictSize)
ZSTD_CCtx_params * ZSTD_createCCtxParams(void)
size_t ZSTD_toFlushNow(ZSTD_CCtx *cctx)
size_t ZSTD_compressEnd(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
ZSTD_compressionParameters ZSTD_adjustCParams(ZSTD_compressionParameters cPar, unsigned long long srcSize, size_t dictSize)
ZSTD_CStream * ZSTD_createCStream_advanced(ZSTD_customMem customMem)
size_t ZSTD_initCStream_usingDict(ZSTD_CStream *zcs, const void *dict, size_t dictSize, int compressionLevel)
size_t ZSTD_compressBegin_advanced(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize)
size_t ZSTD_CCtx_setParametersUsingCCtxParams(ZSTD_CCtx *cctx, const ZSTD_CCtx_params *params)
size_t ZSTD_compressContinue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
size_t ZSTD_initCStream_srcSize(ZSTD_CStream *zcs, int compressionLevel, unsigned long long pss)
ZSTD_frameProgression ZSTD_getFrameProgression(const ZSTD_CCtx *cctx)
size_t ZSTD_estimateCStreamSize_usingCParams(ZSTD_compressionParameters cParams)
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_CCtxParams_setParameter(ZSTD_CCtx_params *CCtxParams, ZSTD_cParameter param, int value)
size_t ZSTD_copyCCtx(ZSTD_CCtx *dstCCtx, const ZSTD_CCtx *srcCCtx, unsigned long long pledgedSrcSize)
size_t ZSTD_estimateCStreamSize(int compressionLevel)
size_t ZSTD_estimateCCtxSize_usingCCtxParams(const ZSTD_CCtx_params *params)
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)
size_t ZSTD_CCtxParams_reset(ZSTD_CCtx_params *params)
size_t ZSTD_resetCStream(ZSTD_CStream *zcs, unsigned long long pss)
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_CCtx_refPrefix_advanced(ZSTD_CCtx *cctx, const void *prefix, size_t prefixSize, ZSTD_dictContentType_e dictContentType)
size_t ZSTD_compressBegin_usingCDict_advanced(ZSTD_CCtx *const cctx, const ZSTD_CDict *const cdict, ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize)
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)
size_t ZSTD_estimateCDictSize(size_t dictSize, int compressionLevel)
size_t ZSTD_CCtxParams_getParameter(ZSTD_CCtx_params *CCtxParams, ZSTD_cParameter param, int *value)
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)
ZSTD_parameters ZSTD_getParams(int compressionLevel, unsigned long long srcSizeHint, size_t dictSize)
size_t ZSTD_initCStream_advanced(ZSTD_CStream *zcs, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long long pss)
size_t ZSTD_CCtxParams_init_advanced(ZSTD_CCtx_params *cctxParams, ZSTD_parameters params)
ZSTD_DDict * ZSTD_createDDict_advanced(const void *dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType, ZSTD_customMem customMem)
size_t ZSTD_estimateDDictSize(size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod)
const ZSTD_DDict * ZSTD_initStaticDDict(void *sBuffer, size_t sBufferSize, const void *dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType)
ZSTD_DDict * ZSTD_createDDict_byReference(const void *dictBuffer, size_t dictSize)
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_nextSrcSizeToDecompress(ZSTD_DCtx *dctx)
size_t ZSTD_decodingBufferSize_min(unsigned long long windowSize, unsigned long long frameContentSize)
size_t ZSTD_DCtx_loadDictionary_byReference(ZSTD_DCtx *dctx, const void *dict, size_t dictSize)
size_t ZSTD_decompressBegin_usingDDict(ZSTD_DCtx *dctx, const ZSTD_DDict *ddict)
ZSTD_DCtx * ZSTD_initStaticDCtx(void *workspace, size_t workspaceSize)
size_t ZSTD_estimateDStreamSize_fromFrame(const void *src, size_t srcSize)
ZSTD_nextInputType_e ZSTD_nextInputType(ZSTD_DCtx *dctx)
size_t ZSTD_decompressBegin(ZSTD_DCtx *dctx)
size_t ZSTD_estimateDCtxSize(void)
ZSTD_DStream * ZSTD_createDStream_advanced(ZSTD_customMem customMem)
size_t ZSTD_getFrameHeader_advanced(ZSTD_frameHeader *zfhPtr, const void *src, size_t srcSize, ZSTD_format_e format)
ZSTD_DStream * ZSTD_initStaticDStream(void *workspace, size_t workspaceSize)
void ZSTD_copyDCtx(ZSTD_DCtx *dstDCtx, const ZSTD_DCtx *srcDCtx)
size_t ZSTD_DCtx_refPrefix_advanced(ZSTD_DCtx *dctx, const void *prefix, size_t prefixSize, ZSTD_dictContentType_e dictContentType)
size_t ZSTD_decompressBegin_usingDict(ZSTD_DCtx *dctx, const void *dict, size_t dictSize)
size_t ZSTD_resetDStream(ZSTD_DStream *dctx)
size_t ZSTD_DCtx_setFormat(ZSTD_DCtx *dctx, ZSTD_format_e format)
size_t ZSTD_frameHeaderSize(const void *src, size_t srcSize)
size_t ZSTD_estimateDStreamSize(size_t windowSize)
unsigned long long ZSTD_findDecompressedSize(const void *src, size_t srcSize)
size_t ZSTD_initDStream_usingDDict(ZSTD_DStream *dctx, const ZSTD_DDict *ddict)
size_t ZSTD_getFrameHeader(ZSTD_frameHeader *zfhPtr, const void *src, size_t srcSize)
size_t ZSTD_initDStream_usingDict(ZSTD_DStream *zds, const void *dict, size_t dictSize)
unsigned ZSTD_isFrame(const void *buffer, size_t size)
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)
size_t ZSTD_insertBlock(ZSTD_DCtx *dctx, const void *blockStart, size_t blockSize)
unsigned long long ZSTD_decompressBound(const void *src, size_t srcSize)
ZSTD_DCtx * ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
size_t ZSTD_DCtx_setMaxWindowSize(ZSTD_DCtx *dctx, size_t maxWindowSize)
size_t ZSTD_decompressContinue(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
size_t ZSTD_decompressBlock(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)