Lines Matching refs:ZSTD_CCtx

89 ZSTD_CCtx* ZSTD_createCCtx(void)
94 static void ZSTD_initCCtx(ZSTD_CCtx* cctx, ZSTD_customMem memManager)
106 ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem)
111 { ZSTD_CCtx* const cctx = (ZSTD_CCtx*)ZSTD_customMalloc(sizeof(ZSTD_CCtx), customMem);
118 ZSTD_CCtx* ZSTD_initStaticCCtx(void* workspace, size_t workspaceSize)
121 ZSTD_CCtx* cctx;
122 if (workspaceSize <= sizeof(ZSTD_CCtx)) return NULL; /* minimum size */
126 cctx = (ZSTD_CCtx*)ZSTD_cwksp_reserve_object(&ws, sizeof(ZSTD_CCtx));
129 ZSTD_memset(cctx, 0, sizeof(ZSTD_CCtx));
145 static void ZSTD_clearAllDicts(ZSTD_CCtx* cctx)
161 static void ZSTD_freeCCtxContent(ZSTD_CCtx* cctx)
169 size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx)
185 static size_t ZSTD_sizeof_mtctx(const ZSTD_CCtx* cctx)
192 size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx)
208 const seqStore_t* ZSTD_getSeqStore(const ZSTD_CCtx* ctx) { return &(ctx->seqStore); }
621 size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value)
873 size_t ZSTD_CCtx_getParameter(ZSTD_CCtx const* cctx, ZSTD_cParameter param, int* value)
996 ZSTD_CCtx* cctx, const ZSTD_CCtx_params* params)
1009 size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize)
1031 static size_t ZSTD_initLocalDict(ZSTD_CCtx* cctx)
1063 ZSTD_CCtx* cctx, const void* dict, size_t dictSize,
1090 ZSTD_CCtx* cctx, const void* dict, size_t dictSize)
1096 size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize)
1103 size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict)
1113 size_t ZSTD_CCtx_refThreadPool(ZSTD_CCtx* cctx, ZSTD_threadPool* pool)
1121 size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, const void* prefix, size_t prefixSize)
1127 ZSTD_CCtx* cctx, const void* prefix, size_t prefixSize, ZSTD_dictContentType_e dictContentType)
1142 size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset)
1418 size_t const cctxSpace = isStatic ? ZSTD_cwksp_alloc_size(sizeof(ZSTD_CCtx)) : 0;
1549 ZSTD_frameProgression ZSTD_getFrameProgression(const ZSTD_CCtx* cctx)
1568 size_t ZSTD_toFlushNow(ZSTD_CCtx* cctx)
1748 static size_t ZSTD_resetCCtx_internal(ZSTD_CCtx* zc,
1923 void ZSTD_invalidateRepCodes(ZSTD_CCtx* cctx) {
1962 ZSTD_resetCCtx_byAttachingCDict(ZSTD_CCtx* cctx,
2022 static size_t ZSTD_resetCCtx_byCopyingCDict(ZSTD_CCtx* cctx,
2104 static size_t ZSTD_resetCCtx_usingCDict(ZSTD_CCtx* cctx,
2130 static size_t ZSTD_copyCCtx_internal(ZSTD_CCtx* dstCCtx,
2131 const ZSTD_CCtx* srcCCtx,
2207 size_t ZSTD_copyCCtx(ZSTD_CCtx* dstCCtx, const ZSTD_CCtx* srcCCtx, unsigned long long pledgedSrcSize)
2723 static size_t ZSTD_buildSeqStore(ZSTD_CCtx* zc, const void* src, size_t srcSize)
2804 static void ZSTD_copyBlockSequences(ZSTD_CCtx* zc)
2868 size_t ZSTD_generateSequences(ZSTD_CCtx* zc, ZSTD_Sequence* outSeqs,
3259 static size_t ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize(seqStore_t* seqStore, ZSTD_CCtx* zc) {
3407 ZSTD_compressSeqStore_singleBlock(ZSTD_CCtx* zc, seqStore_t* const seqStore,
3496 ZSTD_CCtx* zc, const seqStore_t* origSeqStore)
3534 static size_t ZSTD_deriveBlockSplits(ZSTD_CCtx* zc, U32 partitions[], U32 nbSeq) {
3553 ZSTD_compressBlock_splitBlock_internal(ZSTD_CCtx* zc, void* dst, size_t dstCapacity,
3642 ZSTD_compressBlock_splitBlock(ZSTD_CCtx* zc,
3672 ZSTD_compressBlock_internal(ZSTD_CCtx* zc,
3735 static size_t ZSTD_compressBlock_targetCBlockSize_body(ZSTD_CCtx* zc,
3790 static size_t ZSTD_compressBlock_targetCBlockSize(ZSTD_CCtx* zc,
3841 static size_t ZSTD_compress_frameChunk(ZSTD_CCtx* cctx,
4004 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq)
4020 static size_t ZSTD_compressContinue_internal (ZSTD_CCtx* cctx,
4081 size_t ZSTD_compressContinue (ZSTD_CCtx* cctx,
4090 size_t ZSTD_getBlockSize(const ZSTD_CCtx* cctx)
4097 size_t ZSTD_compressBlock(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize)
4398 static size_t ZSTD_compressBegin_internal(ZSTD_CCtx* cctx,
4442 size_t ZSTD_compressBegin_advanced_internal(ZSTD_CCtx* cctx,
4462 size_t ZSTD_compressBegin_advanced(ZSTD_CCtx* cctx,
4474 size_t ZSTD_compressBegin_usingDict(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, int compressionLevel)
4486 size_t ZSTD_compressBegin(ZSTD_CCtx* cctx, int compressionLevel)
4495 static size_t ZSTD_writeEpilogue(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity)
4534 void ZSTD_CCtx_trace(ZSTD_CCtx* cctx, size_t extraCSize)
4540 size_t ZSTD_compressEnd (ZSTD_CCtx* cctx,
4566 size_t ZSTD_compress_advanced (ZSTD_CCtx* cctx,
4584 ZSTD_CCtx* cctx,
4597 size_t ZSTD_compress_usingDict(ZSTD_CCtx* cctx,
4612 size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx,
4627 ZSTD_CCtx* cctx = ZSTD_createCCtx();
4939 ZSTD_CCtx* const cctx, const ZSTD_CDict* const cdict,
4980 ZSTD_CCtx* const cctx, const ZSTD_CDict* const cdict,
4988 size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict)
4997 static size_t ZSTD_compress_usingCDict_internal(ZSTD_CCtx* cctx,
5009 size_t ZSTD_compress_usingCDict_advanced(ZSTD_CCtx* cctx,
5022 size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx,
5198 static size_t ZSTD_nextInputSizeHint(const ZSTD_CCtx* cctx)
5376 static size_t ZSTD_nextInputSizeHint_MTorST(const ZSTD_CCtx* cctx)
5391 static void ZSTD_setBufferExpectations(ZSTD_CCtx* cctx, ZSTD_outBuffer const* output, ZSTD_inBuffer const* input)
5404 static size_t ZSTD_checkBufferStability(ZSTD_CCtx const* cctx,
5424 static size_t ZSTD_CCtx_init_compressStream2(ZSTD_CCtx* cctx,
5480 size_t ZSTD_compressStream2( ZSTD_CCtx* cctx,
5508 ZSTD_CCtx* cctx,
5522 size_t ZSTD_compress2(ZSTD_CCtx* cctx,
5599 ZSTD_copySequencesToSeqStoreExplicitBlockDelim(ZSTD_CCtx* cctx,
5662 ZSTD_copySequencesToSeqStoreNoBlockDelim(ZSTD_CCtx* cctx, ZSTD_sequencePosition* seqPos,
5780 typedef size_t (*ZSTD_sequenceCopier) (ZSTD_CCtx* cctx, ZSTD_sequencePosition* seqPos,
5802 ZSTD_compressSequences_internal(ZSTD_CCtx* cctx,
5914 size_t ZSTD_compressSequences(ZSTD_CCtx* const cctx, void* dst, size_t dstCapacity,