![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
#include "../common/allocations.h"
#include "../common/zstd_deps.h"
#include "../common/mem.h"
#include "../common/pool.h"
#include "../common/threading.h"
#include "zstd_compress_internal.h"
#include "zstd_ldm.h"
#include "zstdmt_compress.h"
Data Structures | |
struct | buffer_s |
struct | ZSTDMT_bufferPool_s |
struct | ZSTDMT_CCtxPool |
struct | range_t |
struct | serialState_t |
struct | ZSTDMT_jobDescription |
struct | inBuff_t |
struct | roundBuff_t |
struct | rsyncState_t |
struct | ZSTDMT_CCtx_s |
struct | syncPoint_t |
Macros | |
#define | ZSTD_RESIZE_SEQPOOL 0 |
#define | ZSTD_PTHREAD_MUTEX_LOCK(m) |
#define | DEBUG_PRINTHEX(l, p, n) |
#define | BUF_POOL_MAX_NB_BUFFERS(nbWorkers) |
#define | SEQ_POOL_MAX_NB_BUFFERS(nbWorkers) |
#define | JOB_ERROR(e) |
#define | RSYNC_LENGTH 32 |
#define | RSYNC_MIN_BLOCK_LOG ZSTD_BLOCKSIZELOG_MAX |
#define | RSYNC_MIN_BLOCK_SIZE (1<<RSYNC_MIN_BLOCK_LOG) |
Typedefs | |
typedef struct buffer_s | buffer_t |
typedef struct ZSTDMT_bufferPool_s | ZSTDMT_bufferPool |
Functions | |
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) |
#define BUF_POOL_MAX_NB_BUFFERS | ( | nbWorkers | ) |
#define DEBUG_PRINTHEX | ( | l, | |
p, | |||
n ) |
#define JOB_ERROR | ( | e | ) |
#define RSYNC_LENGTH 32 |
#define RSYNC_MIN_BLOCK_LOG ZSTD_BLOCKSIZELOG_MAX |
#define RSYNC_MIN_BLOCK_SIZE (1<<RSYNC_MIN_BLOCK_LOG) |
#define SEQ_POOL_MAX_NB_BUFFERS | ( | nbWorkers | ) |
#define ZSTD_PTHREAD_MUTEX_LOCK | ( | m | ) |
#define ZSTD_RESIZE_SEQPOOL 0 |
typedef struct buffer_s buffer_t |
typedef struct ZSTDMT_bufferPool_s ZSTDMT_bufferPool |
size_t ZSTDMT_compressStream_generic | ( | ZSTDMT_CCtx * | mtctx, |
ZSTD_outBuffer * | output, | ||
ZSTD_inBuffer * | input, | ||
ZSTD_EndDirective | endOp ) |
ZSTDMT_compressStream_generic() : internal use only - exposed to be invoked from zstd_compress.c assumption : output and input are valid (pos <= size)
ZSTDMT_CCtx * ZSTDMT_createCCtx_advanced | ( | unsigned | nbWorkers, |
ZSTD_customMem | cMem, | ||
ZSTD_threadPool * | pool ) |
MEM_STATIC ZSTDMT_CCtx * ZSTDMT_createCCtx_advanced_internal | ( | unsigned | nbWorkers, |
ZSTD_customMem | cMem, | ||
ZSTD_threadPool * | pool ) |
size_t ZSTDMT_freeCCtx | ( | ZSTDMT_CCtx * | mtctx | ) |
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.
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.
size_t ZSTDMT_nextInputSizeHint | ( | const ZSTDMT_CCtx * | mtctx | ) |
size_t ZSTDMT_sizeof_CCtx | ( | ZSTDMT_CCtx * | mtctx | ) |
size_t ZSTDMT_toFlushNow | ( | ZSTDMT_CCtx * | mtctx | ) |
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.
void ZSTDMT_updateCParams_whileCompressing | ( | ZSTDMT_CCtx * | mtctx, |
const ZSTD_CCtx_params * | cctxParams ) |
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.