]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Add new definition of ZSTD_d_forceSkipChecksum in experimental section
authorsenhuang42 <senhuang96@fb.com>
Fri, 21 Aug 2020 19:59:03 +0000 (15:59 -0400)
committersenhuang42 <senhuang96@fb.com>
Fri, 21 Aug 2020 19:59:03 +0000 (15:59 -0400)
lib/zstd.h

index 2cb82d7a1897476203fd1c9815203116c0e0b5b3..76afd183ea86535f26cf6f29580a4399b5ed0700 100644 (file)
@@ -528,11 +528,13 @@ typedef enum {
      * At the time of this writing, they include :
      * ZSTD_d_format
      * ZSTD_d_stableOutBuffer
+     * ZSTD_d_forceSkipChecksum
      * Because they are not stable, it's necessary to define ZSTD_STATIC_LINKING_ONLY to access them.
      * note : never ever use experimentalParam? names directly
      */
      ZSTD_d_experimentalParam1=1000,
-     ZSTD_d_experimentalParam2=1001
+     ZSTD_d_experimentalParam2=1001,
+     ZSTD_d_experimentalParam3=1002
 
 } ZSTD_dParameter;
 
@@ -1690,6 +1692,16 @@ ZSTDLIB_API size_t ZSTD_DCtx_setMaxWindowSize(ZSTD_DCtx* dctx, size_t maxWindowS
  */
 #define ZSTD_d_stableOutBuffer ZSTD_d_experimentalParam2
 
+/* ZSTD_d_forceSkipChecksum
+ * Experimental parameter.
+ * Default is 0 == disabled. Set to 1 to enable
+ *
+ * Tells the decompressor to skip checksum validation during decompression, regardless.
+ * of whether or not checksumming was specified during decompression. This offers some
+ * slight performance benefits, and may be useful for debugging.
+ */
+#define ZSTD_d_forceSkipChecksum ZSTD_d_experimentalParam3
+
 /*! ZSTD_DCtx_setFormat() :
  *  Instruct the decoder context about what kind of data to decode next.
  *  This instruction is mandatory to decode data without a fully-formed header,