@@ -187,8 +187,8 @@ ZSTDLIB_API unsigned long long ZSTD_getFrameContentSize(const void *src, size_t
187
187
* "empty", "unknown" and "error" results to the same return value (0),
188
188
* while ZSTD_getFrameContentSize() gives them separate return values.
189
189
* @return : decompressed size of `src` frame content _if known and not empty_, 0 otherwise. */
190
- ZSTDLIB_API
191
190
ZSTD_DEPRECATED (" Replaced by ZSTD_getFrameContentSize" )
191
+ ZSTDLIB_API
192
192
unsigned long long ZSTD_getDecompressedSize(const void * src, size_t srcSize);
193
193
194
194
/* ! ZSTD_findFrameCompressedSize() : Requires v1.4.0+
@@ -1710,8 +1710,8 @@ ZSTDLIB_STATIC_API ZSTD_compressionParameters ZSTD_adjustCParams(ZSTD_compressio
1710
1710
* Note : this function is now DEPRECATED.
1711
1711
* It can be replaced by ZSTD_compress2(), in combination with ZSTD_CCtx_setParameter() and other parameter setters.
1712
1712
* This prototype will generate compilation warnings. */
1713
- ZSTDLIB_STATIC_API
1714
1713
ZSTD_DEPRECATED (" use ZSTD_compress2" )
1714
+ ZSTDLIB_STATIC_API
1715
1715
size_t ZSTD_compress_advanced(ZSTD_CCtx* cctx,
1716
1716
void * dst, size_t dstCapacity,
1717
1717
const void * src, size_t srcSize,
@@ -1722,8 +1722,8 @@ size_t ZSTD_compress_advanced(ZSTD_CCtx* cctx,
1722
1722
* Note : this function is now DEPRECATED.
1723
1723
* It can be replaced by ZSTD_compress2(), in combination with ZSTD_CCtx_loadDictionary() and other parameter setters.
1724
1724
* This prototype will generate compilation warnings. */
1725
- ZSTDLIB_STATIC_API
1726
1725
ZSTD_DEPRECATED (" use ZSTD_compress2 with ZSTD_CCtx_loadDictionary" )
1726
+ ZSTDLIB_STATIC_API
1727
1727
size_t ZSTD_compress_usingCDict_advanced(ZSTD_CCtx* cctx,
1728
1728
void * dst, size_t dstCapacity,
1729
1729
const void * src, size_t srcSize,
@@ -2226,8 +2226,8 @@ ZSTDLIB_STATIC_API size_t ZSTD_DCtx_getParameter(ZSTD_DCtx* dctx, ZSTD_dParamete
2226
2226
* This instruction is mandatory to decode data without a fully-formed header,
2227
2227
* such ZSTD_f_zstd1_magicless for example.
2228
2228
* @return : 0, or an error code (which can be tested using ZSTD_isError()). */
2229
- ZSTDLIB_STATIC_API
2230
2229
ZSTD_DEPRECATED (" use ZSTD_DCtx_setParameter() instead" )
2230
+ ZSTDLIB_STATIC_API
2231
2231
size_t ZSTD_DCtx_setFormat(ZSTD_DCtx* dctx, ZSTD_format_e format);
2232
2232
2233
2233
/* ! ZSTD_decompressStream_simpleArgs() :
@@ -2263,8 +2263,8 @@ ZSTDLIB_STATIC_API size_t ZSTD_decompressStream_simpleArgs (
2263
2263
* "0" also disables frame content size field. It may be enabled in the future.
2264
2264
* This prototype will generate compilation warnings.
2265
2265
*/
2266
- ZSTDLIB_STATIC_API
2267
2266
ZSTD_DEPRECATED (" use ZSTD_CCtx_reset, see zstd.h for detailed instructions" )
2267
+ ZSTDLIB_STATIC_API
2268
2268
size_t ZSTD_initCStream_srcSize(ZSTD_CStream* zcs,
2269
2269
int compressionLevel,
2270
2270
unsigned long long pledgedSrcSize);
@@ -2281,8 +2281,8 @@ size_t ZSTD_initCStream_srcSize(ZSTD_CStream* zcs,
2281
2281
* it begins with ZSTD_MAGIC_DICTIONARY, else as raw content) and ZSTD_dlm_byCopy.
2282
2282
* This prototype will generate compilation warnings.
2283
2283
*/
2284
- ZSTDLIB_STATIC_API
2285
2284
ZSTD_DEPRECATED (" use ZSTD_CCtx_reset, see zstd.h for detailed instructions" )
2285
+ ZSTDLIB_STATIC_API
2286
2286
size_t ZSTD_initCStream_usingDict(ZSTD_CStream* zcs,
2287
2287
const void * dict, size_t dictSize,
2288
2288
int compressionLevel);
@@ -2302,8 +2302,8 @@ size_t ZSTD_initCStream_usingDict(ZSTD_CStream* zcs,
2302
2302
* If srcSize is not known at init time, use value ZSTD_CONTENTSIZE_UNKNOWN.
2303
2303
* This prototype will generate compilation warnings.
2304
2304
*/
2305
- ZSTDLIB_STATIC_API
2306
2305
ZSTD_DEPRECATED (" use ZSTD_CCtx_reset, see zstd.h for detailed instructions" )
2306
+ ZSTDLIB_STATIC_API
2307
2307
size_t ZSTD_initCStream_advanced(ZSTD_CStream* zcs,
2308
2308
const void * dict, size_t dictSize,
2309
2309
ZSTD_parameters params,
@@ -2317,8 +2317,8 @@ size_t ZSTD_initCStream_advanced(ZSTD_CStream* zcs,
2317
2317
* note : cdict will just be referenced, and must outlive compression session
2318
2318
* This prototype will generate compilation warnings.
2319
2319
*/
2320
- ZSTDLIB_STATIC_API
2321
2320
ZSTD_DEPRECATED (" use ZSTD_CCtx_reset and ZSTD_CCtx_refCDict, see zstd.h for detailed instructions" )
2321
+ ZSTDLIB_STATIC_API
2322
2322
size_t ZSTD_initCStream_usingCDict(ZSTD_CStream* zcs, const ZSTD_CDict* cdict);
2323
2323
2324
2324
/* ! ZSTD_initCStream_usingCDict_advanced() :
@@ -2336,8 +2336,8 @@ size_t ZSTD_initCStream_usingCDict(ZSTD_CStream* zcs, const ZSTD_CDict* cdict);
2336
2336
* value ZSTD_CONTENTSIZE_UNKNOWN.
2337
2337
* This prototype will generate compilation warnings.
2338
2338
*/
2339
- ZSTDLIB_STATIC_API
2340
2339
ZSTD_DEPRECATED (" use ZSTD_CCtx_reset and ZSTD_CCtx_refCDict, see zstd.h for detailed instructions" )
2340
+ ZSTDLIB_STATIC_API
2341
2341
size_t ZSTD_initCStream_usingCDict_advanced(ZSTD_CStream* zcs,
2342
2342
const ZSTD_CDict* cdict,
2343
2343
ZSTD_frameParameters fParams ,
@@ -2361,8 +2361,8 @@ size_t ZSTD_initCStream_usingCDict_advanced(ZSTD_CStream* zcs,
2361
2361
* @return : 0, or an error code (which can be tested using ZSTD_isError())
2362
2362
* This prototype will generate compilation warnings.
2363
2363
*/
2364
- ZSTDLIB_STATIC_API
2365
2364
ZSTD_DEPRECATED (" use ZSTD_CCtx_reset, see zstd.h for detailed instructions" )
2365
+ ZSTDLIB_STATIC_API
2366
2366
size_t ZSTD_resetCStream(ZSTD_CStream* zcs, unsigned long long pledgedSrcSize);
2367
2367
2368
2368
@@ -2474,19 +2474,19 @@ ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds);
2474
2474
/* ===== Buffer-less streaming compression functions =====*/
2475
2475
ZSTDLIB_STATIC_API size_t ZSTD_compressBegin (ZSTD_CCtx* cctx, int compressionLevel);
2476
2476
ZSTDLIB_STATIC_API size_t ZSTD_compressBegin_usingDict (ZSTD_CCtx* cctx, const void * dict, size_t dictSize, int compressionLevel);
2477
- ZSTDLIB_STATIC_API size_t ZSTD_compressBegin_usingCDict (ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); /* *< note: fails if cdict==NULL */
2478
2477
ZSTD_DEPRECATED (" This function will likely be removed in the next minor release. It is misleading and has very limited utility." )
2478
+ ZSTDLIB_STATIC_API size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); /* *< note: fails if cdict==NULL */
2479
2479
ZSTDLIB_STATIC_API size_t ZSTD_copyCCtx (ZSTD_CCtx* cctx, const ZSTD_CCtx* preparedCCtx, unsigned long long pledgedSrcSize); /* *< note: if pledgedSrcSize is not known, use ZSTD_CONTENTSIZE_UNKNOWN */
2480
2480
2481
2481
ZSTDLIB_STATIC_API size_t ZSTD_compressContinue (ZSTD_CCtx* cctx, void * dst, size_t dstCapacity, const void * src, size_t srcSize);
2482
2482
ZSTDLIB_STATIC_API size_t ZSTD_compressEnd (ZSTD_CCtx* cctx, void * dst, size_t dstCapacity, const void * src, size_t srcSize);
2483
2483
2484
2484
/* The ZSTD_compressBegin_advanced() and ZSTD_compressBegin_usingCDict_advanced() are now DEPRECATED and will generate a compiler warning */
2485
- ZSTDLIB_STATIC_API
2486
2485
ZSTD_DEPRECATED (" use advanced API to access custom parameters" )
2487
- size_t ZSTD_compressBegin_advanced(ZSTD_CCtx* cctx, const void * dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize); /* *< pledgedSrcSize : If srcSize is not known at init time, use ZSTD_CONTENTSIZE_UNKNOWN */
2488
2486
ZSTDLIB_STATIC_API
2487
+ size_t ZSTD_compressBegin_advanced(ZSTD_CCtx* cctx, const void * dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize); /* *< pledgedSrcSize : If srcSize is not known at init time, use ZSTD_CONTENTSIZE_UNKNOWN */
2489
2488
ZSTD_DEPRECATED (" use advanced API to access custom parameters" )
2489
+ ZSTDLIB_STATIC_API
2490
2490
size_t ZSTD_compressBegin_usingCDict_advanced(ZSTD_CCtx* const cctx, const ZSTD_CDict* const cdict, ZSTD_frameParameters const fParams , unsigned long long const pledgedSrcSize); /* compression parameters are already set within cdict. pledgedSrcSize must be correct. If srcSize is not known, use macro ZSTD_CONTENTSIZE_UNKNOWN */
2491
2491
/* *
2492
2492
Buffer-less streaming decompression (synchronous mode)
0 commit comments