Add rawSeqStore to match state
This commit is contained in:
@@ -86,6 +86,19 @@ typedef struct {
|
|||||||
U32 len;
|
U32 len;
|
||||||
} ZSTD_match_t;
|
} ZSTD_match_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
U32 offset;
|
||||||
|
U32 litLength;
|
||||||
|
U32 matchLength;
|
||||||
|
} rawSeq;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
rawSeq* seq; /* The start of the sequences */
|
||||||
|
size_t pos; /* The position where reading stopped. <= size. */
|
||||||
|
size_t size; /* The number of sequences. <= capacity. */
|
||||||
|
size_t capacity; /* The capacity starting from `seq` pointer */
|
||||||
|
} rawSeqStore_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int price;
|
int price;
|
||||||
U32 off;
|
U32 off;
|
||||||
@@ -152,6 +165,7 @@ struct ZSTD_matchState_t {
|
|||||||
optState_t opt; /* optimal parser state */
|
optState_t opt; /* optimal parser state */
|
||||||
const ZSTD_matchState_t* dictMatchState;
|
const ZSTD_matchState_t* dictMatchState;
|
||||||
ZSTD_compressionParameters cParams;
|
ZSTD_compressionParameters cParams;
|
||||||
|
rawSeqStore_t ldmSeqStore;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@@ -183,19 +197,6 @@ typedef struct {
|
|||||||
U32 windowLog; /* Window log for the LDM */
|
U32 windowLog; /* Window log for the LDM */
|
||||||
} ldmParams_t;
|
} ldmParams_t;
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
U32 offset;
|
|
||||||
U32 litLength;
|
|
||||||
U32 matchLength;
|
|
||||||
} rawSeq;
|
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
rawSeq* seq; /* The start of the sequences */
|
|
||||||
size_t pos; /* The position where reading stopped. <= size. */
|
|
||||||
size_t size; /* The number of sequences. <= capacity. */
|
|
||||||
size_t capacity; /* The capacity starting from `seq` pointer */
|
|
||||||
} rawSeqStore_t;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int collectSequences;
|
int collectSequences;
|
||||||
ZSTD_Sequence* seqStart;
|
ZSTD_Sequence* seqStart;
|
||||||
|
|||||||
Reference in New Issue
Block a user