Changing api to get sequences across all blocks

This commit is contained in:
Bimba Shrestha
2019-08-30 09:18:44 -07:00
parent 623b90f85d
commit 5f8b0f6890
4 changed files with 103 additions and 71 deletions
+8
View File
@@ -192,6 +192,13 @@ typedef struct {
size_t capacity; /* The capacity starting from `seq` pointer */
} rawSeqStore_t;
typedef struct {
int collectSequences;
ZSTD_Sequence* seqStart;
ZSTD_Sequence* seqCurrent;
size_t maxSequences;
} SeqCollector;
struct ZSTD_CCtx_params_s {
ZSTD_format_e format;
ZSTD_compressionParameters cParams;
@@ -238,6 +245,7 @@ struct ZSTD_CCtx_s {
XXH64_state_t xxhState;
ZSTD_customMem customMem;
size_t staticSize;
SeqCollector seqCollector;
seqStore_t seqStore; /* sequences storage ptrs */
ldmState_t ldmState; /* long distance matching state */