contrib/python-zstandard/zstd/decompress/zstd_decompress_internal.h
changeset 42937 69de49c4e39c
parent 42070 675775c33ab6
equal deleted inserted replaced
42936:2da754532dd3 42937:69de49c4e39c
    87                ZSTDds_decodeSkippableHeader, ZSTDds_skipFrame } ZSTD_dStage;
    87                ZSTDds_decodeSkippableHeader, ZSTDds_skipFrame } ZSTD_dStage;
    88 
    88 
    89 typedef enum { zdss_init=0, zdss_loadHeader,
    89 typedef enum { zdss_init=0, zdss_loadHeader,
    90                zdss_read, zdss_load, zdss_flush } ZSTD_dStreamStage;
    90                zdss_read, zdss_load, zdss_flush } ZSTD_dStreamStage;
    91 
    91 
       
    92 typedef enum {
       
    93     ZSTD_use_indefinitely = -1,  /* Use the dictionary indefinitely */
       
    94     ZSTD_dont_use = 0,           /* Do not use the dictionary (if one exists free it) */
       
    95     ZSTD_use_once = 1            /* Use the dictionary once and set to ZSTD_dont_use */
       
    96 } ZSTD_dictUses_e;
       
    97 
    92 struct ZSTD_DCtx_s
    98 struct ZSTD_DCtx_s
    93 {
    99 {
    94     const ZSTD_seqSymbol* LLTptr;
   100     const ZSTD_seqSymbol* LLTptr;
    95     const ZSTD_seqSymbol* MLTptr;
   101     const ZSTD_seqSymbol* MLTptr;
    96     const ZSTD_seqSymbol* OFTptr;
   102     const ZSTD_seqSymbol* OFTptr;
   121     /* dictionary */
   127     /* dictionary */
   122     ZSTD_DDict* ddictLocal;
   128     ZSTD_DDict* ddictLocal;
   123     const ZSTD_DDict* ddict;     /* set by ZSTD_initDStream_usingDDict(), or ZSTD_DCtx_refDDict() */
   129     const ZSTD_DDict* ddict;     /* set by ZSTD_initDStream_usingDDict(), or ZSTD_DCtx_refDDict() */
   124     U32 dictID;
   130     U32 dictID;
   125     int ddictIsCold;             /* if == 1 : dictionary is "new" for working context, and presumed "cold" (not in cpu cache) */
   131     int ddictIsCold;             /* if == 1 : dictionary is "new" for working context, and presumed "cold" (not in cpu cache) */
       
   132     ZSTD_dictUses_e dictUses;
   126 
   133 
   127     /* streaming */
   134     /* streaming */
   128     ZSTD_dStreamStage streamStage;
   135     ZSTD_dStreamStage streamStage;
   129     char*  inBuff;
   136     char*  inBuff;
   130     size_t inBuffSize;
   137     size_t inBuffSize;