summaryrefslogtreecommitdiff
path: root/src/third_party/zstandard/zstd/lib/compress/zstdmt_compress.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/zstandard/zstd/lib/compress/zstdmt_compress.h')
-rw-r--r--src/third_party/zstandard/zstd/lib/compress/zstdmt_compress.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/third_party/zstandard/zstd/lib/compress/zstdmt_compress.h b/src/third_party/zstandard/zstd/lib/compress/zstdmt_compress.h
index 2fee2ec7455..271eb1ac71f 100644
--- a/src/third_party/zstandard/zstd/lib/compress/zstdmt_compress.h
+++ b/src/third_party/zstandard/zstd/lib/compress/zstdmt_compress.h
@@ -65,8 +65,11 @@ size_t ZSTDMT_nextInputSizeHint(const ZSTDMT_CCtx* mtctx);
* 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.
* @return : 0, or an error code */
-size_t ZSTDMT_initCStream_internal(ZSTDMT_CCtx* zcs,
+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);