From 10f999f856ceb45dad47e7d5db116c27231f3a22 Mon Sep 17 00:00:00 2001 From: luben karavelov Date: Sat, 16 Jul 2016 22:18:47 +0100 Subject: [PATCH] Add legacy support for the low-level streaming API --- lib/legacy/zstd_v04.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/legacy/zstd_v04.c b/lib/legacy/zstd_v04.c index 23ed133e..eeb7cc1c 100644 --- a/lib/legacy/zstd_v04.c +++ b/lib/legacy/zstd_v04.c @@ -4054,3 +4054,11 @@ size_t ZBUFFv04_decompressContinue(ZBUFFv04_DCtx* dctx, void* dst, size_t* maxDs { return ZBUFF_decompressContinue(dctx, dst, maxDstSizePtr, src, srcSizePtr); } + +ZSTD_DCtx* ZSTDv04_createDCtx(void) { return ZSTD_createDCtx(); } +size_t ZSTDv04_freeDCtx(ZSTD_DCtx* dctx) { return ZSTD_freeDCtx(dctx); } + +size_t ZSTDv04_getFrameParams(ZSTD_parameters* params, const void* src, size_t srcSize) +{ + return ZSTD_getFrameParams(params, src, srcSize); +}