diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-02-12 17:18:24 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-03-12 18:58:43 (GMT) |
commit | 73cc39327e3abc28a360323c4f26c3c34d87ff07 (patch) | |
tree | 0289a085b99724966c11aefcdcc03ec3498c4d45 /lib/lz4.h | |
parent | 62cb52b3410bdfd696669910de010ab03666edc8 (diff) | |
download | lz4-73cc39327e3abc28a360323c4f26c3c34d87ff07.zip lz4-73cc39327e3abc28a360323c4f26c3c34d87ff07.tar.gz lz4-73cc39327e3abc28a360323c4f26c3c34d87ff07.tar.bz2 |
Lookup Matches in Separate Dictionary Context
Diffstat (limited to 'lib/lz4.h')
-rw-r--r-- | lib/lz4.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -365,15 +365,16 @@ LZ4LIB_API int LZ4_decompress_fast_usingDict (const char* src, char* dst, int or #if defined(__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) #include <stdint.h> -typedef struct { +typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; +struct LZ4_stream_t_internal { uint32_t hashTable[LZ4_HASH_SIZE_U32]; uint32_t currentOffset; uint16_t initCheck; uint16_t tableType; const uint8_t* dictionary; - uint8_t* bufferStart; /* obsolete, used for slideInputBuffer */ + const LZ4_stream_t_internal* dictCtx; uint32_t dictSize; -} LZ4_stream_t_internal; +}; typedef struct { const uint8_t* externalDict; @@ -384,15 +385,16 @@ typedef struct { #else -typedef struct { +typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; +struct LZ4_stream_t_internal { unsigned int hashTable[LZ4_HASH_SIZE_U32]; unsigned int currentOffset; unsigned short initCheck; unsigned short tableType; const unsigned char* dictionary; - unsigned char* bufferStart; /* obsolete, used for slideInputBuffer */ + const LZ4_stream_t_internal* dictCtx; unsigned int dictSize; -} LZ4_stream_t_internal; +}; typedef struct { const unsigned char* externalDict; |