MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ZSTD_resetDStream

Function ZSTD_resetDStream

freebsd/contrib/zstd/lib/decompress/zstd_decompress.c:1380–1384  ·  view source on GitHub ↗

ZSTD_resetDStream() : * return : expected size, aka ZSTD_startingInputLength(). * this function cannot fail */

Source from the content-addressed store, hash-verified

1378 * return : expected size, aka ZSTD_startingInputLength().
1379 * this function cannot fail */
1380size_t ZSTD_resetDStream(ZSTD_DStream* dctx)
1381{
1382 FORWARD_IF_ERROR(ZSTD_DCtx_reset(dctx, ZSTD_reset_session_only), "");
1383 return ZSTD_startingInputLength(dctx->format);
1384}
1385
1386
1387size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict)

Callers 3

zstd_zlibwrapper.cFile · 0.50
BMK_benchMemFunction · 0.50
FIO_decompressZstdFrameFunction · 0.50

Calls 2

ZSTD_DCtx_resetFunction · 0.70
ZSTD_startingInputLengthFunction · 0.70

Tested by

no test coverage detected