15 #ifndef ZSTD_DECOMPRESS_INTERNAL_H
16 #define ZSTD_DECOMPRESS_INTERNAL_H
22#include "../common/mem.h"
23#include "../common/zstd_internal.h"
31 0, 1, 2, 3, 4, 5, 6, 7,
32 8, 9, 10, 11, 12, 13, 14, 15,
33 16, 18, 20, 22, 24, 28, 32, 40,
34 48, 64, 0x80, 0x100, 0x200, 0x400, 0x800, 0x1000,
35 0x2000, 0x4000, 0x8000, 0x10000 };
38 0, 1, 1, 5, 0xD, 0x1D, 0x3D, 0x7D,
39 0xFD, 0x1FD, 0x3FD, 0x7FD, 0xFFD, 0x1FFD, 0x3FFD, 0x7FFD,
40 0xFFFD, 0x1FFFD, 0x3FFFD, 0x7FFFD, 0xFFFFD, 0x1FFFFD, 0x3FFFFD, 0x7FFFFD,
41 0xFFFFFD, 0x1FFFFFD, 0x3FFFFFD, 0x7FFFFFD, 0xFFFFFFD, 0x1FFFFFFD, 0x3FFFFFFD, 0x7FFFFFFD };
44 0, 1, 2, 3, 4, 5, 6, 7,
45 8, 9, 10, 11, 12, 13, 14, 15,
46 16, 17, 18, 19, 20, 21, 22, 23,
47 24, 25, 26, 27, 28, 29, 30, 31 };
50 3, 4, 5, 6, 7, 8, 9, 10,
51 11, 12, 13, 14, 15, 16, 17, 18,
52 19, 20, 21, 22, 23, 24, 25, 26,
53 27, 28, 29, 30, 31, 32, 33, 34,
54 35, 37, 39, 41, 43, 47, 51, 59,
55 67, 83, 99, 0x83, 0x103, 0x203, 0x403, 0x803,
56 0x1003, 0x2003, 0x4003, 0x8003, 0x10003 };
74 #define SEQSYMBOL_TABLE_SIZE(log) (1 + (1 << (log)))
76#define ZSTD_BUILD_FSE_TABLE_WKSP_SIZE (sizeof(S16) * (MaxSeq + 1) + (1u << MaxFSELog) + sizeof(U64))
77#define ZSTD_BUILD_FSE_TABLE_WKSP_SIZE_U32 ((ZSTD_BUILD_FSE_TABLE_WKSP_SIZE + sizeof(U32) - 1) / sizeof(U32))
78#define ZSTD_HUFFDTABLE_CAPACITY_LOG 12
110#ifndef ZSTD_DECODER_INTERNAL_BUFFER
111# define ZSTD_DECODER_INTERNAL_BUFFER (1 << 16)
115#define ZSTD_LBMAX (128 << 10)
118#define ZSTD_LITBUFFEREXTRASIZE BOUNDED(ZSTD_LBMIN, ZSTD_DECODER_INTERNAL_BUFFER, ZSTD_LBMAX)
183#if defined(ZSTD_LEGACY_SUPPORT) && (ZSTD_LEGACY_SUPPORT>=1)
185 U32 previousLegacyVersion;
202#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
203 void const* dictContentBeginForFuzzing;
204 void const* dictContentEndForFuzzing;
209 ZSTD_TraceCtx traceCtx;
230 const void*
const dict,
size_t const dictSize);
struct XXH64_state_s XXH64_state_t
The opaque state struct for the XXH64 streaming API.
#define HUF_DECOMPRESS_WORKSPACE_SIZE_U32
#define HUF_DTABLE_SIZE(maxTableLog)
const BYTE * litBufferEnd
BYTE litExtraBuffer[ZSTD_LITBUFFEREXTRASIZE+WILDCOPY_OVERLENGTH]
ZSTD_refMultipleDDicts_e refMultipleDDicts
const HUF_DTable * HUFptr
ZSTD_dStreamStage streamStage
ZSTD_DDictHashSet * ddictSet
U32 workspace[HUF_DECOMPRESS_WORKSPACE_SIZE_U32]
ZSTD_litLocation_e litBufferLocation
const ZSTD_seqSymbol * MLTptr
const void * virtualStart
const ZSTD_seqSymbol * OFTptr
ZSTD_entropyDTables_t entropy
ZSTD_bufferMode_e outBufferMode
ZSTD_outBuffer expectedOutBuffer
BYTE headerBuffer[ZSTD_FRAMEHEADERSIZE_MAX]
const void * previousDstEnd
const ZSTD_seqSymbol * LLTptr
ZSTD_forceIgnoreChecksum_e forceIgnoreChecksum
const ZSTD_DDict ** ddictPtrTable
#define ZSTD_BUILD_FSE_TABLE_WKSP_SIZE_U32
#define SEQSYMBOL_TABLE_SIZE(log)
MEM_STATIC int ZSTD_DCtx_get_bmi2(const struct ZSTD_DCtx_s *dctx)
#define ZSTD_LITBUFFEREXTRASIZE
size_t ZSTD_loadDEntropy(ZSTD_entropyDTables_t *entropy, const void *const dict, size_t const dictSize)
#define ZSTD_HUFFDTABLE_CAPACITY_LOG
void ZSTD_checkContinuity(ZSTD_DCtx *dctx, const void *dst, size_t dstSize)
@ ZSTDds_getFrameHeaderSize
@ ZSTDds_decodeBlockHeader
@ ZSTDds_decompressLastBlock
@ ZSTDds_decodeFrameHeader
@ ZSTDds_decodeSkippableHeader
#define WILDCOPY_OVERLENGTH