1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-17 20:47:51 +02:00

static dctx is incompatible with legacy support

documented, and runtime tested
This commit is contained in:
Yann Collet
2017-05-27 00:03:08 -07:00
parent cdf7e82222
commit b8136f019a
3 changed files with 12 additions and 3 deletions

View File

@ -844,7 +844,8 @@ ZSTDLIB_API ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem);
* @return : pointer to ZSTD_DCtx*, or NULL if error (size too small)
* Note : zstd will never resize nor malloc() when using a static dctx.
* If it needs more memory than available, it will simply error out.
* Note 2 : there is no corresponding "free" function.
* Note 2 : static dctx is incompatible with legacy support
* Note 3 : there is no corresponding "free" function.
* Since workspace was allocated externally, it must be freed externally.
* Limitation : currently not compatible with internal DDict creation,
* such as ZSTD_initDStream_usingDict().