summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-03-16 22:10:38 (GMT)
committerYann Collet <cyan@fb.com>2017-03-16 22:10:38 (GMT)
commitcd35f0d98c54e3ba0573ce5473482fadd6ec0a59 (patch)
tree94fd812d9a7cc29a7004effa98e09236ba61d124 /lib/lz4hc.h
parent6b2a1b3606be01a0b4899a1aaa566f0943064da9 (diff)
downloadlz4-cd35f0d98c54e3ba0573ce5473482fadd6ec0a59.zip
lz4-cd35f0d98c54e3ba0573ce5473482fadd6ec0a59.tar.gz
lz4-cd35f0d98c54e3ba0573ce5473482fadd6ec0a59.tar.bz2
LZ4_compress_HC_destSize() uses LZ4HC_compress_generic() code path
Limits compression level to 10, to remain compatible with Hash Chain.
Diffstat (limited to 'lib/lz4hc.h')
-rw-r--r--lib/lz4hc.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/lz4hc.h b/lib/lz4hc.h
index 04b1d64..8535a9e 100644
--- a/lib/lz4hc.h
+++ b/lib/lz4hc.h
@@ -1,7 +1,7 @@
/*
LZ4 HC - High Compression Mode of LZ4
Header File
- Copyright (C) 2011-2016, Yann Collet.
+ Copyright (C) 2011-2017, Yann Collet.
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
Redistribution and use in source and binary forms, with or without
@@ -145,14 +145,14 @@ typedef struct
{
uint32_t hashTable[LZ4HC_HASHTABLESIZE];
uint16_t chainTable[LZ4HC_MAXD];
- const uint8_t* end; /* next block here to continue on current prefix */
- const uint8_t* base; /* All index relative to this position */
- const uint8_t* dictBase; /* alternate base for extDict */
- uint8_t* inputBuffer; /* deprecated */
- uint32_t dictLimit; /* below that point, need extDict */
- uint32_t lowLimit; /* below that point, no more dict */
- uint32_t nextToUpdate; /* index from which to continue dictionary update */
- uint32_t searchNum; /* only for optimal parser */
+ const uint8_t* end; /* next block here to continue on current prefix */
+ const uint8_t* base; /* All index relative to this position */
+ const uint8_t* dictBase; /* alternate base for extDict */
+ uint8_t* inputBuffer; /* deprecated */
+ uint32_t dictLimit; /* below that point, need extDict */
+ uint32_t lowLimit; /* below that point, no more dict */
+ uint32_t nextToUpdate; /* index from which to continue dictionary update */
+ uint32_t searchNum; /* only for optimal parser */
uint32_t compressionLevel;
} LZ4HC_CCtx_internal;
@@ -170,7 +170,7 @@ typedef struct
unsigned int lowLimit; /* below that point, no more dict */
unsigned int nextToUpdate; /* index from which to continue dictionary update */
unsigned int searchNum; /* only for optimal parser */
- unsigned int compressionLevel;
+ int compressionLevel;
} LZ4HC_CCtx_internal;
#endif