From 742f2b683e948d837aff607a2cfff6f67b039f54 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 21 Nov 2016 14:13:00 -0800 Subject: added doc in code comments --- lib/lz4frame.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/lz4frame.h b/lib/lz4frame.h index e26be76..9449e0d 100644 --- a/lib/lz4frame.h +++ b/lib/lz4frame.h @@ -130,6 +130,10 @@ typedef LZ4F_frameType_t frameType_t; typedef LZ4F_contentChecksum_t contentChecksum_t; #endif +/* LZ4F_frameInfo_t : + * makes it possible to supply detailed frame parameters to the stream interface. + * It's not required to set all fields, as long as the structure was initially memset() to zero. + * All reserved fields must be set to zero. */ typedef struct { LZ4F_blockSizeID_t blockSizeID; /* max64KB, max256KB, max1MB, max4MB ; 0 == default */ LZ4F_blockMode_t blockMode; /* blockLinked, blockIndependent ; 0 == default */ @@ -139,6 +143,10 @@ typedef struct { unsigned reserved[2]; /* must be zero for forward compatibility */ } LZ4F_frameInfo_t; +/* LZ4F_preferences_t : + * makes it possible to supply detailed compression parameters to the stream interface. + * It's not required to set all fields, as long as the structure was initially memset() to zero. + * All reserved fields must be set to zero. */ typedef struct { LZ4F_frameInfo_t frameInfo; int compressionLevel; /* 0 == default (fast mode); values above 16 count as 16; values below 0 count as 0 */ -- cgit v0.12