summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-08-09 00:43:11 (GMT)
committerYann Collet <cyan@fb.com>2017-08-09 00:43:11 (GMT)
commita82dadfbae74916aecdd10121cc0177fd8162b90 (patch)
tree2b31a0fe990f21326a9a7f9feab8003dbdb7f802 /lib/lz4frame.h
parente98a528576c1cc095dcdcf9ff1f4e3e8422a535d (diff)
downloadlz4-a82dadfbae74916aecdd10121cc0177fd8162b90.zip
lz4-a82dadfbae74916aecdd10121cc0177fd8162b90.tar.gz
lz4-a82dadfbae74916aecdd10121cc0177fd8162b90.tar.bz2
added dictID inside LZ4F_frameInfo_t
Compressor can set dictID on LZ4F_compressBegin() Decompressor can retrieve it using LZ4F_getFrameInfo()
Diffstat (limited to 'lib/lz4frame.h')
-rw-r--r--lib/lz4frame.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/lz4frame.h b/lib/lz4frame.h
index dd2be58..0efe220 100644
--- a/lib/lz4frame.h
+++ b/lib/lz4frame.h
@@ -162,7 +162,8 @@ typedef struct {
LZ4F_contentChecksum_t contentChecksumFlag; /* noContentChecksum, contentChecksumEnabled ; 0 == default */
LZ4F_frameType_t frameType; /* LZ4F_frame, skippableFrame ; 0 == default */
unsigned long long contentSize; /* Size of uncompressed (original) content ; 0 == unknown */
- unsigned reserved[2]; /* must be zero for forward compatibility */
+ unsigned dictID; /* Dictionary ID, sent by the compressor, to help the decoder select the right dictionary; 0 == no dictionary used */
+ unsigned reserved[1]; /* must be zero for forward compatibility */
} LZ4F_frameInfo_t;
/*! LZ4F_preferences_t :
@@ -228,7 +229,7 @@ LZ4FLIB_API LZ4F_errorCode_t LZ4F_freeCompressionContext(LZ4F_cctx* cctx);
/*---- Compression ----*/
-#define LZ4F_HEADER_SIZE_MAX 15
+#define LZ4F_HEADER_SIZE_MAX 19
/*! LZ4F_compressBegin() :
* will write the frame header into dstBuffer.
* dstCapacity must be large enough to store the header. Maximum header size is LZ4F_HEADER_SIZE_MAX bytes.