Home
last modified time | relevance | path

Searched refs:legacyContext (Results 1 – 5 of 5) sorted by relevance

/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_legacy.h254 MEM_STATIC size_t ZSTD_freeLegacyStreamContext(void* legacyContext, U32 version) in ZSTD_freeLegacyStreamContext() argument
262 (void)legacyContext; in ZSTD_freeLegacyStreamContext()
265 case 4 : return ZBUFFv04_freeDCtx((ZBUFFv04_DCtx*)legacyContext); in ZSTD_freeLegacyStreamContext()
268 case 5 : return ZBUFFv05_freeDCtx((ZBUFFv05_DCtx*)legacyContext); in ZSTD_freeLegacyStreamContext()
271 case 6 : return ZBUFFv06_freeDCtx((ZBUFFv06_DCtx*)legacyContext); in ZSTD_freeLegacyStreamContext()
274 case 7 : return ZBUFFv07_freeDCtx((ZBUFFv07_DCtx*)legacyContext); in ZSTD_freeLegacyStreamContext()
280 MEM_STATIC size_t ZSTD_initLegacyStream(void** legacyContext, U32 prevVersion, U32 newVersion, in ZSTD_initLegacyStream() argument
284 if (prevVersion != newVersion) ZSTD_freeLegacyStreamContext(*legacyContext, prevVersion); in ZSTD_initLegacyStream()
296 …_DCtx* dctx = (prevVersion != newVersion) ? ZBUFFv04_createDCtx() : (ZBUFFv04_DCtx*)*legacyContext; in ZSTD_initLegacyStream()
300 *legacyContext = dctx; in ZSTD_initLegacyStream()
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_internal.h150 void* legacyContext; member
H A Dzstd_decompress.c111 dctx->legacyContext = NULL; in ZSTD_initDCtx_internal()
170 if (dctx->legacyContext) in ZSTD_freeDCtx()
171 ZSTD_freeLegacyStreamContext(dctx->legacyContext, dctx->previousLegacyVersion); in ZSTD_freeDCtx()
1632 …{ size_t const hint = ZSTD_decompressLegacyStream(zds->legacyContext, zds->legacyVersion, output… in ZSTD_decompressStream()
1649 FORWARD_IF_ERROR(ZSTD_initLegacyStream(&zds->legacyContext, in ZSTD_decompressStream()
1653 …{ size_t const hint = ZSTD_decompressLegacyStream(zds->legacyContext, legacyVersion, output, inp… in ZSTD_decompressStream()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress_internal.h180 void* legacyContext; member
H A Dzstd_decompress.c261 dctx->legacyContext = NULL; in ZSTD_initDCtx_internal()
328 if (dctx->legacyContext) in ZSTD_freeDCtx()
329 ZSTD_freeLegacyStreamContext(dctx->legacyContext, dctx->previousLegacyVersion); in ZSTD_freeDCtx()
1974 …{ size_t const hint = ZSTD_decompressLegacyStream(zds->legacyContext, zds->legacyVersion, output… in ZSTD_decompressStream()
1994 FORWARD_IF_ERROR(ZSTD_initLegacyStream(&zds->legacyContext, in ZSTD_decompressStream()
1998 …{ size_t const hint = ZSTD_decompressLegacyStream(zds->legacyContext, legacyVersion, output, inp… in ZSTD_decompressStream()