diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-09-13 09:08:55 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-09-13 09:08:55 (GMT) |
commit | bd704cf70ad7b935db0d1baaee902b28e6394bba (patch) | |
tree | e2ace4b60c783821092314b2c828a9eefcd5f787 /lz4frame.h | |
parent | a586208597f28b7b4df0913f5b95cefbd46e2a31 (diff) | |
download | lz4-bd704cf70ad7b935db0d1baaee902b28e6394bba.zip lz4-bd704cf70ad7b935db0d1baaee902b28e6394bba.tar.gz lz4-bd704cf70ad7b935db0d1baaee902b28e6394bba.tar.bz2 |
lz4frame : implemented option stableSrc
Improved LZ4_compressFrame() speed
Diffstat (limited to 'lz4frame.h')
-rw-r--r-- | lz4frame.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -85,7 +85,7 @@ typedef struct { blockSizeID_t blockSizeID; /* max64KB, max256KB, max1MB, max4MB ; 0 == default */ blockMode_t blockMode; /* blockLinked, blockIndependent ; 0 == default */ contentChecksum_t contentChecksumFlag; /* noContentChecksum, contentChecksumEnabled ; 0 == default */ - unsigned reserved[3]; + unsigned reserved[5]; } LZ4F_frameInfo_t; typedef struct { @@ -122,8 +122,8 @@ size_t LZ4F_compressFrame(void* dstBuffer, size_t dstMaxSize, const void* srcBuf typedef void* LZ4F_compressionContext_t; typedef struct { - unsigned stableSrc; /* unused for the time being, must be 0 */ - unsigned reserved[5]; + unsigned stableSrc; /* 1 == src content will remain available on future calls to LZ4F_compress(); avoid saving src content within tmp buffer as future dictionary */ + unsigned reserved[3]; } LZ4F_compressOptions_t; /* Resource Management */ @@ -199,7 +199,7 @@ typedef void* LZ4F_decompressionContext_t; typedef struct { unsigned stableDst; /* unused for the time being, must be 0 */ - unsigned reserved[5]; + unsigned reserved[3]; } LZ4F_decompressOptions_t; /* Resource management */ |