Go to the source code of this file.
|
ZSTDMT_CCtx * | ZSTDMT_createCCtx_advanced (unsigned nbWorkers, ZSTD_customMem cMem, ZSTD_threadPool *pool) |
|
size_t | ZSTDMT_freeCCtx (ZSTDMT_CCtx *mtctx) |
|
size_t | ZSTDMT_sizeof_CCtx (ZSTDMT_CCtx *mtctx) |
|
size_t | ZSTDMT_nextInputSizeHint (const ZSTDMT_CCtx *mtctx) |
|
size_t | ZSTDMT_initCStream_internal (ZSTDMT_CCtx *mtctx, const void *dict, size_t dictSize, ZSTD_dictContentType_e dictContentType, const ZSTD_CDict *cdict, ZSTD_CCtx_params params, unsigned long long pledgedSrcSize) |
|
size_t | ZSTDMT_compressStream_generic (ZSTDMT_CCtx *mtctx, ZSTD_outBuffer *output, ZSTD_inBuffer *input, ZSTD_EndDirective endOp) |
|
size_t | ZSTDMT_toFlushNow (ZSTDMT_CCtx *mtctx) |
|
void | ZSTDMT_updateCParams_whileCompressing (ZSTDMT_CCtx *mtctx, const ZSTD_CCtx_params *cctxParams) |
|
ZSTD_frameProgression | ZSTDMT_getFrameProgression (ZSTDMT_CCtx *mtctx) |
|
◆ ZSTD_STATIC_LINKING_ONLY
◆ ZSTDMT_JOBLOG_MAX
#define ZSTDMT_JOBLOG_MAX (MEM_32bits() ? 29 : 30) |
◆ ZSTDMT_JOBSIZE_MAX
◆ ZSTDMT_JOBSIZE_MIN
#define ZSTDMT_JOBSIZE_MIN (512 KB) |
◆ ZSTDMT_NBWORKERS_MAX
#define ZSTDMT_NBWORKERS_MAX ((sizeof(void*)==4) /*32-bit*/ ? 64 : 256) |
◆ ZSTDMT_compressStream_generic()
ZSTDMT_compressStream_generic() : Combines ZSTDMT_compressStream() with optional ZSTDMT_flushStream() or ZSTDMT_endStream() depending on flush directive.
- Returns
- : minimum amount of data still to be flushed 0 if fully flushed or an error code note : needs to be init using any ZSTD_initCStream*() variant
ZSTDMT_compressStream_generic() : internal use only - exposed to be invoked from zstd_compress.c assumption : output and input are valid (pos <= size)
- Returns
- : minimum amount of data remaining to flush, 0 if none
◆ ZSTDMT_createCCtx_advanced()
ZSTDMT_CCtx * ZSTDMT_createCCtx_advanced |
( |
unsigned | nbWorkers, |
|
|
ZSTD_customMem | cMem, |
|
|
ZSTD_threadPool * | pool ) |
◆ ZSTDMT_freeCCtx()
◆ ZSTDMT_getFrameProgression()
ZSTD_frameProgression ZSTDMT_getFrameProgression |
( |
ZSTDMT_CCtx * | mtctx | ) |
|
ZSTDMT_getFrameProgression(): tells how much data has been consumed (input) and produced (output) for current frame. able to count progression inside worker threads.
◆ ZSTDMT_initCStream_internal()
size_t ZSTDMT_initCStream_internal |
( |
ZSTDMT_CCtx * | mtctx, |
|
|
const void * | dict, |
|
|
size_t | dictSize, |
|
|
ZSTD_dictContentType_e | dictContentType, |
|
|
const ZSTD_CDict * | cdict, |
|
|
ZSTD_CCtx_params | params, |
|
|
unsigned long long | pledgedSrcSize ) |
ZSTDMT_initCStream_internal() : Private use only. Init streaming operation. expects params to be valid. must receive dict, or cdict, or none, but not both. mtctx can be freshly constructed or reused from a prior compression. If mtctx is reused, memory allocations from the prior compression may not be freed, even if they are not needed for the current compression.
- Returns
- : 0, or an error code
◆ ZSTDMT_nextInputSizeHint()
◆ ZSTDMT_sizeof_CCtx()
◆ ZSTDMT_toFlushNow()
ZSTDMT_toFlushNow() Tell how many bytes are ready to be flushed immediately. Probe the oldest active job (not yet entirely flushed) and check its output buffer. If return 0, it means there is no active job, or, it means oldest job is still active, but everything produced has been flushed so far, therefore flushing is limited by speed of oldest job.
◆ ZSTDMT_updateCParams_whileCompressing()
void ZSTDMT_updateCParams_whileCompressing |
( |
ZSTDMT_CCtx * | mtctx, |
|
|
const ZSTD_CCtx_params * | cctxParams ) |
ZSTDMT_updateCParams_whileCompressing() : Updates only a selected set of compression parameters, to remain compatible with current frame. New parameters will be applied to next compression job.
ZSTDMT_updateCParams_whileCompressing() : Updates a selected set of compression parameters, remaining compatible with currently active frame. New parameters will be applied to next compression job.