Go to the source code of this file.
|
MEM_STATIC ZSTDMT_CCtx * | ZSTDMT_createCCtx_advanced_internal (unsigned nbWorkers, ZSTD_customMem cMem, ZSTD_threadPool *pool) |
|
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) |
|
void | ZSTDMT_updateCParams_whileCompressing (ZSTDMT_CCtx *mtctx, const ZSTD_CCtx_params *cctxParams) |
|
ZSTD_frameProgression | ZSTDMT_getFrameProgression (ZSTDMT_CCtx *mtctx) |
|
size_t | ZSTDMT_toFlushNow (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_nextInputSizeHint (const ZSTDMT_CCtx *mtctx) |
|
size_t | ZSTDMT_compressStream_generic (ZSTDMT_CCtx *mtctx, ZSTD_outBuffer *output, ZSTD_inBuffer *input, ZSTD_EndDirective endOp) |
|
◆ BUF_POOL_MAX_NB_BUFFERS
#define BUF_POOL_MAX_NB_BUFFERS |
( |
|
nbWorkers | ) |
(2*(nbWorkers) + 3) |
◆ DEBUG_PRINTHEX
#define DEBUG_PRINTHEX |
( |
|
l, |
|
|
|
p, |
|
|
|
n |
|
) |
| do { } while (0) |
◆ JOB_ERROR
Value: do { \
ZSTD_PTHREAD_MUTEX_LOCK(&job->job_mutex); \
job->cSize = e; \
ZSTD_pthread_mutex_unlock(&job->job_mutex); \
goto _endJob; \
} while (0)
Definition at line 674 of file zstdmt_compress.c.
◆ RSYNC_LENGTH
◆ RSYNC_MIN_BLOCK_LOG
◆ RSYNC_MIN_BLOCK_SIZE
◆ SEQ_POOL_MAX_NB_BUFFERS
#define SEQ_POOL_MAX_NB_BUFFERS |
( |
|
nbWorkers | ) |
(nbWorkers) |
◆ ZSTD_PTHREAD_MUTEX_LOCK
◆ ZSTD_RESIZE_SEQPOOL
#define ZSTD_RESIZE_SEQPOOL 0 |
◆ buffer_t
◆ ZSTDMT_bufferPool
◆ ZSTDMT_seqPool
◆ ZSTDMT_compressStream_generic()
◆ ZSTDMT_createCCtx_advanced()
ZSTDMT_CCtx * ZSTDMT_createCCtx_advanced |
( |
unsigned |
nbWorkers, |
|
|
ZSTD_customMem |
cMem, |
|
|
ZSTD_threadPool * |
pool |
|
) |
| |
◆ ZSTDMT_createCCtx_advanced_internal()
MEM_STATIC ZSTDMT_CCtx * ZSTDMT_createCCtx_advanced_internal |
( |
unsigned |
nbWorkers, |
|
|
ZSTD_customMem |
cMem, |
|
|
ZSTD_threadPool * |
pool |
|
) |
| |
◆ ZSTDMT_freeCCtx()
◆ ZSTDMT_getFrameProgression()
ZSTD_frameProgression ZSTDMT_getFrameProgression |
( |
ZSTDMT_CCtx * |
mtctx | ) |
|
◆ 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
Definition at line 1233 of file zstdmt_compress.c.
◆ ZSTDMT_nextInputSizeHint()
size_t ZSTDMT_nextInputSizeHint |
( |
const ZSTDMT_CCtx * |
mtctx | ) |
|
◆ 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.
Definition at line 1131 of file zstdmt_compress.c.
◆ ZSTDMT_updateCParams_whileCompressing()
void ZSTDMT_updateCParams_whileCompressing |
( |
ZSTDMT_CCtx * |
mtctx, |
|
|
const ZSTD_CCtx_params * |
cctxParams |
|
) |
| |