From: senhuang42 Date: Thu, 1 Oct 2020 15:40:52 +0000 (-0400) Subject: Improve documentation of relevant structs X-Git-Tag: v1.4.7~57^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a687b3fcb853b9437d33c853800192131b08f95;p=thirdparty%2Fzstd.git Improve documentation of relevant structs --- diff --git a/lib/compress/zstd_compress_internal.h b/lib/compress/zstd_compress_internal.h index 770adefc1..954af31f9 100644 --- a/lib/compress/zstd_compress_internal.h +++ b/lib/compress/zstd_compress_internal.h @@ -82,23 +82,23 @@ typedef struct { } ZSTD_entropyCTables_t; typedef struct { - U32 off; - U32 len; + U32 off; /* Offset code for the match */ + U32 len; /* Raw length of match */ } ZSTD_match_t; typedef struct { - U32 offset; - U32 litLength; - U32 matchLength; + U32 offset; /* Offset of sequence */ + U32 litLength; /* Length of literals prior to match */ + U32 matchLength; /* Raw length of match */ } rawSeq; typedef struct { - rawSeq* seq; /* The start of the sequences */ - size_t pos; /* The index in this seqStore where reading stopped. <= size. */ - size_t posInSequence; /* The position within the rawSeq at index 'pos' where reading - stopped. */ - size_t size; /* The number of sequences. <= capacity. */ - size_t capacity; /* The capacity starting from `seq` pointer */ + rawSeq* seq; /* The start of the sequences */ + size_t pos; /* The index in seq where reading stopped. pos <= size. */ + size_t posInSequence; /* The position within the sequence at seq[pos] where reading + stopped. posInSequence <= seq[pos].litLength + seq[pos].matchLength */ + size_t size; /* The number of sequences. <= capacity. */ + size_t capacity; /* The capacity starting from `seq` pointer */ } rawSeqStore_t; typedef struct {