Home
last modified time | relevance | path

Searched refs:zbd (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/contrib/zstd/lib/deprecated/
H A Dzbuff_decompress.c32 size_t ZBUFF_freeDCtx(ZBUFF_DCtx* zbd) in ZBUFF_freeDCtx() argument
34 return ZSTD_freeDStream(zbd); in ZBUFF_freeDCtx()
40 size_t ZBUFF_decompressInitDictionary(ZBUFF_DCtx* zbd, const void* dict, size_t dictSize) in ZBUFF_decompressInitDictionary() argument
42 return ZSTD_initDStream_usingDict(zbd, dict, dictSize); in ZBUFF_decompressInitDictionary()
45 size_t ZBUFF_decompressInit(ZBUFF_DCtx* zbd) in ZBUFF_decompressInit() argument
47 return ZSTD_initDStream(zbd); in ZBUFF_decompressInit()
53 size_t ZBUFF_decompressContinue(ZBUFF_DCtx* zbd, in ZBUFF_decompressContinue() argument
66 result = ZSTD_decompressStream(zbd, &outBuff, &inBuff); in ZBUFF_decompressContinue()
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v07.c4287 ZBUFFv07_DCtx* zbd; in ZBUFFv07_createDCtx_advanced() local
4295 zbd = (ZBUFFv07_DCtx*)customMem.customAlloc(customMem.opaque, sizeof(ZBUFFv07_DCtx)); in ZBUFFv07_createDCtx_advanced()
4296 if (zbd==NULL) return NULL; in ZBUFFv07_createDCtx_advanced()
4297 memset(zbd, 0, sizeof(ZBUFFv07_DCtx)); in ZBUFFv07_createDCtx_advanced()
4298 memcpy(&zbd->customMem, &customMem, sizeof(ZSTDv07_customMem)); in ZBUFFv07_createDCtx_advanced()
4299 zbd->zd = ZSTDv07_createDCtx_advanced(customMem); in ZBUFFv07_createDCtx_advanced()
4300 if (zbd->zd == NULL) { ZBUFFv07_freeDCtx(zbd); return NULL; } in ZBUFFv07_createDCtx_advanced()
4301 zbd->stage = ZBUFFds_init; in ZBUFFv07_createDCtx_advanced()
4302 return zbd; in ZBUFFv07_createDCtx_advanced()
4305 size_t ZBUFFv07_freeDCtx(ZBUFFv07_DCtx* zbd) in ZBUFFv07_freeDCtx() argument
[all …]
H A Dzstd_v06.c3918 ZBUFFv06_DCtx* zbd = (ZBUFFv06_DCtx*)malloc(sizeof(ZBUFFv06_DCtx)); in ZBUFFv06_createDCtx() local
3919 if (zbd==NULL) return NULL; in ZBUFFv06_createDCtx()
3920 memset(zbd, 0, sizeof(*zbd)); in ZBUFFv06_createDCtx()
3921 zbd->zd = ZSTDv06_createDCtx(); in ZBUFFv06_createDCtx()
3922 if (zbd->zd==NULL) { in ZBUFFv06_createDCtx()
3923 ZBUFFv06_freeDCtx(zbd); /* avoid leaking the context */ in ZBUFFv06_createDCtx()
3926 zbd->stage = ZBUFFds_init; in ZBUFFv06_createDCtx()
3927 return zbd; in ZBUFFv06_createDCtx()
3930 size_t ZBUFFv06_freeDCtx(ZBUFFv06_DCtx* zbd) in ZBUFFv06_freeDCtx() argument
3932 if (zbd==NULL) return 0; /* support free on null */ in ZBUFFv06_freeDCtx()
[all …]
/freebsd/sys/contrib/zstd/zlibWrapper/
H A Dzstd_zlibwrapper.c517 ZSTD_DStream* zbd; member
565 ZSTD_freeDStream(zwd->zbd); in ZWRAP_freeDCtx()
708 if (zwd == NULL || zwd->zbd == NULL) return Z_STREAM_ERROR; in z_inflateSetDictionary()
709 { size_t const resetErr = ZSTD_DCtx_reset(zwd->zbd, ZSTD_reset_session_only); in z_inflateSetDictionary()
711 { size_t const loadErr = ZSTD_DCtx_loadDictionary(zwd->zbd, dictionary, dictLength); in z_inflateSetDictionary()
722 … { size_t const errorCode = ZSTD_decompressStream(zwd->zbd, &zwd->outBuffer, &zwd->inBuffer); in z_inflateSetDictionary()
833 if (!zwd->zbd) { in z_inflate()
834 zwd->zbd = ZSTD_createDStream_advanced(zwd->customMem); in z_inflate()
835 if (zwd->zbd == NULL) { LOG_WRAPPERD("ERROR: ZSTD_createDStream_advanced\n"); goto error; } in z_inflate()
842 size_t const initErr = ZSTD_initDStream(zwd->zbd); in z_inflate()
[all …]