LDM manages its own window round buffer

This commit is contained in:
Nick Terrell
2018-02-27 12:13:23 -08:00
parent d18d43aaf9
commit 0a0e64c641
4 changed files with 74 additions and 27 deletions
+4 -2
View File
@@ -29,13 +29,15 @@ extern "C" {
*
* Generates the sequences using the long distance match finder.
* The sequences completely parse a prefix of the source, but leave off the last
* literals. Returns the number of sequences generated into `sequences`.
* literals. Returns the number of sequences generated into `sequences`. The
* user must have called ZSTD_window_update() for all of the input they have,
* even if they pass it to ZSTD_ldm_generateSequences() in chunks.
*
* NOTE: The source may be any size, assuming it doesn't overflow the hash table
* indices, and the output sequences table is large enough..
*/
size_t ZSTD_ldm_generateSequences(
ldmState_t* ldms, rawSeq* sequences, ZSTD_matchState_t const* ms,
ldmState_t* ldms, rawSeq* sequences,
ldmParams_t const* params, void const* src, size_t srcSize,
int const extDict);