diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-09-05 14:50:06 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-09-05 14:50:06 (GMT) |
commit | 28f38c328d0974c1020e2c3a5a2ba9e085da5280 (patch) | |
tree | 88464036e4de680c9885ede3f500d06c5b50a352 /lz4frame.h | |
parent | 9732cf4d40fb63a44336cf9bf9b37ad47e9e3284 (diff) | |
download | lz4-28f38c328d0974c1020e2c3a5a2ba9e085da5280.zip lz4-28f38c328d0974c1020e2c3a5a2ba9e085da5280.tar.gz lz4-28f38c328d0974c1020e2c3a5a2ba9e085da5280.tar.bz2 |
Implemented Content Checksum Verification within LZ4F_decompress()
Diffstat (limited to 'lz4frame.h')
-rw-r--r-- | lz4frame.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -80,12 +80,14 @@ typedef struct { blockSizeID_t blockSizeID; /* max64KB, max256KB, max1MB, max4MB ; 0 == default */ blockMode_t blockMode; /* blockLinked, blockIndependent ; 0 == default */ contentChecksum_t contentChecksumFlag; /* contentChecksumEnabled (default), noContentChecksum ; */ + unsigned reserved[3]; } LZ4F_frameInfo_t; typedef struct { LZ4F_frameInfo_t frameInfo; unsigned compressionLevel; /* from 0 to 16 */ unsigned autoFlush; /* 1 == automatic flush after each call to LZ4F_compress() */ + unsigned reserved[4]; } LZ4F_preferences_t; @@ -115,7 +117,8 @@ size_t LZ4F_compressFrame(void* dstBuffer, size_t dstMaxSize, const void* srcBuf typedef void* LZ4F_compressionContext_t; typedef struct { - int stableSrc; /* unused for the time being, must be 0 */ + unsigned stableSrc; /* unused for the time being, must be 0 */ + unsigned reserved[5]; } LZ4F_compressOptions_t; /* Resource Management */ @@ -193,12 +196,13 @@ size_t LZ4F_compressEnd(LZ4F_compressionContext_t compressionContext, void* dstB typedef void* LZ4F_decompressionContext_t; typedef struct { - int stableDst; /* unused for the time being, must be 0 */ + unsigned stableDst; /* unused for the time being, must be 0 */ + unsigned reserved[5]; } LZ4F_decompressOptions_t; /* Resource management */ -LZ4F_errorCode_t LZ4F_createDecompressionContext(LZ4F_compressionContext_t* LZ4F_decompressionContextPtr); +LZ4F_errorCode_t LZ4F_createDecompressionContext(LZ4F_compressionContext_t* LZ4F_decompressionContextPtr, unsigned versionNumber); LZ4F_errorCode_t LZ4F_freeDecompressionContext(LZ4F_compressionContext_t LZ4F_decompressionContext); /* LZ4F_createDecompressionContext() : * The first thing to do is to create a decompressionContext object, which will be used in all decompression operations. |