summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2022-07-12 19:41:51 (GMT)
committerYann Collet <cyan@fb.com>2022-07-12 20:33:08 (GMT)
commit60f8eb6f4ca44162f26a7a60e8c1346ce4362999 (patch)
tree1caa21e6facb8413fa896538eece0aa2c5711ae9 /lib/lz4hc.h
parentd174f975d218c8d2c4df79da3b80a11c50c59e5a (diff)
downloadlz4-60f8eb6f4ca44162f26a7a60e8c1346ce4362999.zip
lz4-60f8eb6f4ca44162f26a7a60e8c1346ce4362999.tar.gz
lz4-60f8eb6f4ca44162f26a7a60e8c1346ce4362999.tar.bz2
minor : specify min versions for library version identifiers
Diffstat (limited to 'lib/lz4hc.h')
-rw-r--r--lib/lz4hc.h29
1 files changed, 5 insertions, 24 deletions
diff --git a/lib/lz4hc.h b/lib/lz4hc.h
index bead076..61e228d 100644
--- a/lib/lz4hc.h
+++ b/lib/lz4hc.h
@@ -198,6 +198,9 @@ LZ4LIB_API int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, in
#define LZ4HC_HASH_MASK (LZ4HC_HASHTABLESIZE - 1)
+/* Never ever use these definitions directly !
+ * Declare or allocate an LZ4_streamHC_t instead.
+**/
typedef struct LZ4HC_CCtx_internal LZ4HC_CCtx_internal;
struct LZ4HC_CCtx_internal
{
@@ -216,32 +219,10 @@ struct LZ4HC_CCtx_internal
const LZ4HC_CCtx_internal* dictCtx;
};
-
-/* Never ever use these definitions directly !
- * Declare or allocate an LZ4_streamHC_t instead.
- * Note : OS400 uses 16 byte pointers and so the structure size is larger than other
- * platforms
- * |===========================================================
- * | Offset | Length | Member Name
- * |===========================================================
- * | 0 | 131072 | hashTable[32768]
- * | 131072 | 131072 | chainTable[65536]
- * | 262144 | 16 | end
- * | 262160 | 16 | base
- * | 262176 | 16 | dictBase
- * | 262192 | 4 | dictLimit
- * | 262196 | 4 | lowLimit
- * | 262200 | 4 | nextToUpdate
- * | 262204 | 2 | compressionLevel
- * | 262206 | 1 | favorDecSpeed
- * | 262207 | 1 | dirty
- * | 262208 | 16 | dictCtx
- * ============================================================
- */
-#define LZ4_STREAMHCSIZE 262200 /* static size, for inter-version compatibility */
+#define LZ4_STREAMHC_MINSIZE 262200 /* static size, for inter-version compatibility */
union LZ4_streamHC_u {
+ char minStateSize[LZ4_STREAMHC_MINSIZE];
LZ4HC_CCtx_internal internal_donotuse;
- char minStateSize[LZ4_STREAMHCSIZE];
}; /* previously typedef'd to LZ4_streamHC_t */
/* LZ4_streamHC_t :