H A D | zstd_compress.c | 94 static void ZSTD_initCCtx(ZSTD_CCtx* cctx, ZSTD_customMem memManager) in ZSTD_initCCtx() argument 96 assert(cctx != NULL); in ZSTD_initCCtx() 97 ZSTD_memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx() 98 cctx->customMem = memManager; in ZSTD_initCCtx() 99 cctx->bmi2 = ZSTD_cpuSupportsBmi2(); in ZSTD_initCCtx() 100 { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); in ZSTD_initCCtx() 111 { ZSTD_CCtx* const cctx = (ZSTD_CCtx*)ZSTD_customMalloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced() local 112 if (!cctx) return NULL; in ZSTD_createCCtx_advanced() 113 ZSTD_initCCtx(cctx, customMe in ZSTD_createCCtx_advanced() 121 ZSTD_CCtx* cctx; ZSTD_initStaticCCtx() local 145 ZSTD_clearAllDicts(ZSTD_CCtx* cctx) ZSTD_clearAllDicts() argument 161 ZSTD_freeCCtxContent(ZSTD_CCtx* cctx) ZSTD_freeCCtxContent() argument 169 ZSTD_freeCCtx(ZSTD_CCtx* cctx) ZSTD_freeCCtx() argument 185 ZSTD_sizeof_mtctx(const ZSTD_CCtx* cctx) ZSTD_sizeof_mtctx() argument 192 ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx) ZSTD_sizeof_CCtx() argument 621 ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value) ZSTD_CCtx_setParameter() argument 873 ZSTD_CCtx_getParameter(ZSTD_CCtx const* cctx, ZSTD_cParameter param, int* value) ZSTD_CCtx_getParameter() argument 995 ZSTD_CCtx_setParametersUsingCCtxParams( ZSTD_CCtx* cctx, const ZSTD_CCtx_params* params) ZSTD_CCtx_setParametersUsingCCtxParams() argument 1009 ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize) ZSTD_CCtx_setPledgedSrcSize() argument 1031 ZSTD_initLocalDict(ZSTD_CCtx* cctx) ZSTD_initLocalDict() argument 1062 ZSTD_CCtx_loadDictionary_advanced( ZSTD_CCtx* cctx, const void* dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType) ZSTD_CCtx_loadDictionary_advanced() argument 1089 ZSTD_CCtx_loadDictionary_byReference( ZSTD_CCtx* cctx, const void* dict, size_t dictSize) ZSTD_CCtx_loadDictionary_byReference() argument 1096 ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize) ZSTD_CCtx_loadDictionary() argument 1103 ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict) ZSTD_CCtx_refCDict() argument 1113 ZSTD_CCtx_refThreadPool(ZSTD_CCtx* cctx, ZSTD_threadPool* pool) ZSTD_CCtx_refThreadPool() argument 1121 ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, const void* prefix, size_t prefixSize) ZSTD_CCtx_refPrefix() argument 1126 ZSTD_CCtx_refPrefix_advanced( ZSTD_CCtx* cctx, const void* prefix, size_t prefixSize, ZSTD_dictContentType_e dictContentType) ZSTD_CCtx_refPrefix_advanced() argument 1142 ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset) ZSTD_CCtx_reset() argument 1549 ZSTD_getFrameProgression(const ZSTD_CCtx* cctx) ZSTD_getFrameProgression() argument 1568 ZSTD_toFlushNow(ZSTD_CCtx* cctx) ZSTD_toFlushNow() argument 1923 ZSTD_invalidateRepCodes(ZSTD_CCtx* cctx) ZSTD_invalidateRepCodes() argument 1962 ZSTD_resetCCtx_byAttachingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict, ZSTD_CCtx_params params, U64 pledgedSrcSize, ZSTD_buffered_policy_e zbuff) ZSTD_resetCCtx_byAttachingCDict() argument 2022 ZSTD_resetCCtx_byCopyingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict, ZSTD_CCtx_params params, U64 pledgedSrcSize, ZSTD_buffered_policy_e zbuff) ZSTD_resetCCtx_byCopyingCDict() argument 2104 ZSTD_resetCCtx_usingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict, const ZSTD_CCtx_params* params, U64 pledgedSrcSize, ZSTD_buffered_policy_e zbuff) ZSTD_resetCCtx_usingCDict() argument 3841 ZSTD_compress_frameChunk(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, U32 lastFrameChunk) ZSTD_compress_frameChunk() argument 4004 ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq) ZSTD_referenceExternalSequences() argument 4020 ZSTD_compressContinue_internal(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, U32 frame, U32 lastFrameChunk) ZSTD_compressContinue_internal() argument 4081 ZSTD_compressContinue(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_compressContinue() argument 4090 ZSTD_getBlockSize(const ZSTD_CCtx* cctx) ZSTD_getBlockSize() argument 4097 ZSTD_compressBlock(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_compressBlock() argument 4398 ZSTD_compressBegin_internal(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, ZSTD_dictContentType_e dictContentType, ZSTD_dictTableLoadMethod_e dtlm, const ZSTD_CDict* cdict, const ZSTD_CCtx_params* params, U64 pledgedSrcSize, ZSTD_buffered_policy_e zbuff) ZSTD_compressBegin_internal() argument 4442 ZSTD_compressBegin_advanced_internal(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, ZSTD_dictContentType_e dictContentType, ZSTD_dictTableLoadMethod_e dtlm, const ZSTD_CDict* cdict, const ZSTD_CCtx_params* params, unsigned long long pledgedSrcSize) ZSTD_compressBegin_advanced_internal() argument 4462 ZSTD_compressBegin_advanced(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize) ZSTD_compressBegin_advanced() argument 4474 ZSTD_compressBegin_usingDict(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, int compressionLevel) ZSTD_compressBegin_usingDict() argument 4486 ZSTD_compressBegin(ZSTD_CCtx* cctx, int compressionLevel) ZSTD_compressBegin() argument 4495 ZSTD_writeEpilogue(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity) ZSTD_writeEpilogue() argument 4534 ZSTD_CCtx_trace(ZSTD_CCtx* cctx, size_t extraCSize) ZSTD_CCtx_trace() argument 4540 ZSTD_compressEnd(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_compressEnd() argument 4566 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) ZSTD_compress_advanced() argument 4583 ZSTD_compress_advanced_internal( ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const void* dict,size_t dictSize, const ZSTD_CCtx_params* params) ZSTD_compress_advanced_internal() argument 4597 ZSTD_compress_usingDict(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const void* dict, size_t dictSize, int compressionLevel) ZSTD_compress_usingDict() argument 4612 ZSTD_compressCCtx(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, int compressionLevel) ZSTD_compressCCtx() argument 4627 ZSTD_CCtx* cctx = ZSTD_createCCtx(); ZSTD_compress() local 4938 ZSTD_compressBegin_usingCDict_internal( ZSTD_CCtx* const cctx, const ZSTD_CDict* const cdict, ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize) ZSTD_compressBegin_usingCDict_internal() argument 4979 ZSTD_compressBegin_usingCDict_advanced( ZSTD_CCtx* const cctx, const ZSTD_CDict* const cdict, ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize) ZSTD_compressBegin_usingCDict_advanced() argument 4988 ZSTD_compressBegin_usingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict) ZSTD_compressBegin_usingCDict() argument 4997 ZSTD_compress_usingCDict_internal(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const ZSTD_CDict* cdict, ZSTD_frameParameters fParams) ZSTD_compress_usingCDict_internal() argument 5009 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_compress_usingCDict_advanced() argument 5022 ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const ZSTD_CDict* cdict) ZSTD_compress_usingCDict() argument 5198 ZSTD_nextInputSizeHint(const ZSTD_CCtx* cctx) ZSTD_nextInputSizeHint() argument 5376 ZSTD_nextInputSizeHint_MTorST(const ZSTD_CCtx* cctx) ZSTD_nextInputSizeHint_MTorST() argument 5391 ZSTD_setBufferExpectations(ZSTD_CCtx* cctx, ZSTD_outBuffer const* output, ZSTD_inBuffer const* input) ZSTD_setBufferExpectations() argument 5404 ZSTD_checkBufferStability(ZSTD_CCtx const* cctx, ZSTD_outBuffer const* output, ZSTD_inBuffer const* input, ZSTD_EndDirective endOp) ZSTD_checkBufferStability() argument 5424 ZSTD_CCtx_init_compressStream2(ZSTD_CCtx* cctx, ZSTD_EndDirective endOp, size_t inSize) ZSTD_CCtx_init_compressStream2() argument 5480 ZSTD_compressStream2( ZSTD_CCtx* cctx, ZSTD_outBuffer* output, ZSTD_inBuffer* input, ZSTD_EndDirective endOp) ZSTD_compressStream2() argument 5507 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) ZSTD_compressStream2_simpleArgs() argument 5522 ZSTD_compress2(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_compress2() argument 5599 ZSTD_copySequencesToSeqStoreExplicitBlockDelim(ZSTD_CCtx* cctx, ZSTD_sequencePosition* seqPos, const ZSTD_Sequence* const inSeqs, size_t inSeqsSize, const void* src, size_t blockSize) ZSTD_copySequencesToSeqStoreExplicitBlockDelim() argument 5662 ZSTD_copySequencesToSeqStoreNoBlockDelim(ZSTD_CCtx* cctx, ZSTD_sequencePosition* seqPos, const ZSTD_Sequence* const inSeqs, size_t inSeqsSize, const void* src, size_t blockSize) ZSTD_copySequencesToSeqStoreNoBlockDelim() argument 5802 ZSTD_compressSequences_internal(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const ZSTD_Sequence* inSeqs, size_t inSeqsSize, const void* src, size_t srcSize) ZSTD_compressSequences_internal() argument 5914 ZSTD_compressSequences(ZSTD_CCtx* const cctx, void* dst, size_t dstCapacity, const ZSTD_Sequence* inSeqs, size_t inSeqsSize, const void* src, size_t srcSize) ZSTD_compressSequences() argument [all...] |
H A D | compress.c | 111 ZSTD_CCtx *cctx; in ZSTD_createCCtx_advanced() local 114 cctx = (ZSTD_CCtx *)ZSTD_malloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced() 115 if (!cctx) in ZSTD_createCCtx_advanced() 117 memset(cctx, 0, sizeof(ZSTD_CCtx)); in ZSTD_createCCtx_advanced() 118 cctx->customMem = customMem; in ZSTD_createCCtx_advanced() 119 return cctx; in ZSTD_createCCtx_advanced() 125 ZSTD_CCtx *cctx = ZSTD_createCCtx_advanced(stackMem); in ZSTD_initCCtx() local 126 if (cctx) { in ZSTD_initCCtx() 127 cctx->workSpace = ZSTD_stackAllocAll(cctx in ZSTD_initCCtx() 132 ZSTD_freeCCtx(ZSTD_CCtx *cctx) ZSTD_freeCCtx() argument 143 ZSTD_getParamsFromCCtx(const ZSTD_CCtx *cctx) ZSTD_getParamsFromCCtx() argument 217 ZSTD_continueCCtx(ZSTD_CCtx *cctx, ZSTD_parameters params, U64 frameContentSize) ZSTD_continueCCtx() argument 337 ZSTD_invalidateRepCodes(ZSTD_CCtx *cctx) ZSTD_invalidateRepCodes() argument 1008 ZSTD_compressBlock_fast_generic(ZSTD_CCtx *cctx, const void *src, size_t srcSize, const U32 mls) ZSTD_compressBlock_fast_generic() argument 1235 ZSTD_fillDoubleHashTable(ZSTD_CCtx *cctx, const void *end, const U32 mls) ZSTD_fillDoubleHashTable() argument 1254 ZSTD_compressBlock_doubleFast_generic(ZSTD_CCtx *cctx, const void *src, size_t srcSize, const U32 mls) ZSTD_compressBlock_doubleFast_generic() argument 2355 ZSTD_compress_generic(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, U32 lastFrameChunk) ZSTD_compress_generic() argument 2490 ZSTD_compressContinue_internal(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, U32 frame, U32 lastFrameChunk) ZSTD_compressContinue_internal() argument 2539 ZSTD_compressContinue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_compressContinue() argument 2544 ZSTD_getBlockSizeMax(ZSTD_CCtx *cctx) ZSTD_getBlockSizeMax() argument 2546 ZSTD_compressBlock(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_compressBlock() argument 2626 ZSTD_loadZstdDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize) ZSTD_loadZstdDictionary() argument 2723 ZSTD_compress_insertDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize) ZSTD_compress_insertDictionary() argument 2738 ZSTD_compressBegin_internal(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_parameters params, U64 pledgedSrcSize) ZSTD_compressBegin_internal() argument 2747 ZSTD_compressBegin_advanced(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize) ZSTD_compressBegin_advanced() argument 2754 ZSTD_compressBegin_usingDict(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, int compressionLevel) ZSTD_compressBegin_usingDict() argument 2760 ZSTD_compressBegin(ZSTD_CCtx *cctx, int compressionLevel) ZSTD_compressBegin() argument 2765 ZSTD_writeEpilogue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity) ZSTD_writeEpilogue() argument 2806 ZSTD_compressEnd(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_compressEnd() argument 2818 ZSTD_compress_internal(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, ZSTD_parameters params) ZSTD_compress_internal() argument 2854 ZSTD_CCtx *const cctx = ZSTD_createCCtx_advanced(customMem); ZSTD_createCDict_advanced() local 2914 ZSTD_compressBegin_usingCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict, unsigned long long pledgedSrcSize) ZSTD_compressBegin_usingCDict() argument 2930 ZSTD_compress_usingCDict(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_CDict *cdict) ZSTD_compress_usingCDict() argument 2951 ZSTD_CCtx *cctx; global() member [all...] |