diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-28 19:13:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 19:13:17 +0200 |
commit | 8cd6127cb8905485f6e27f6e3760df78fb227aa4 (patch) | |
tree | 9016424e7553ca4ff930714dd5602db9b6bf15a0 /thirdparty/zstd/compress/zstdmt_compress.h | |
parent | 622b656c40f9d8d9c8fdd45d6727f416952636d7 (diff) | |
parent | 39ed39900e34e10f40d0d06ed358d2641d7f3315 (diff) |
Merge pull request #59167 from akien-mga/zstd-1.5.2
zstd: Update to upstream version 1.5.2
Diffstat (limited to 'thirdparty/zstd/compress/zstdmt_compress.h')
-rw-r--r-- | thirdparty/zstd/compress/zstdmt_compress.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/thirdparty/zstd/compress/zstdmt_compress.h b/thirdparty/zstd/compress/zstdmt_compress.h index 2fee2ec745..271eb1ac71 100644 --- a/thirdparty/zstd/compress/zstdmt_compress.h +++ b/thirdparty/zstd/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); |