Rename to ZSTD_d_forceIgnoreChecksum, add to DCtx, add function to set the advanced param

This commit is contained in:
senhuang42
2020-08-21 16:23:39 -04:00
parent b5cddda073
commit 2f39124342
3 changed files with 22 additions and 5 deletions
@@ -100,6 +100,11 @@ typedef enum {
ZSTD_obm_stable = 1 /* ZSTD_outBuffer is stable */
} ZSTD_outBufferMode_e;
typedef enum {
ZSTD_d_validateChecksum = 0,
ZSTD_d_ignoreChecksum = 1
} ZSTD_ignoreChecksumMode_e;
struct ZSTD_DCtx_s
{
const ZSTD_seqSymbol* LLTptr;
@@ -122,6 +127,7 @@ struct ZSTD_DCtx_s
XXH64_state_t xxhState;
size_t headerSize;
ZSTD_format_e format;
ZSTD_ignoreChecksumMode_e forceIgnoreChecksum; /* if enabled, will ignore checksums in compressed frame */
const BYTE* litPtr;
ZSTD_customMem customMem;
size_t litSize;