aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/zstd/zstd_ldm.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-03-02 09:19:48 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-03-02 09:19:48 +0000
commit77dc28d43e0f0a3a2ec7c61b3d6c9be8a4d0fa45 (patch)
tree9a5de720c81ad9403451b04adcb62ba010a1fad7 /contrib/zstd/zstd_ldm.h
parent5e792b26110c4b84c93b2cc724d656f6d96b5135 (diff)
downloadrspamd-77dc28d43e0f0a3a2ec7c61b3d6c9be8a4d0fa45.tar.gz
rspamd-77dc28d43e0f0a3a2ec7c61b3d6c9be8a4d0fa45.zip
[Minor] Update zstd to 1.5.4
Diffstat (limited to 'contrib/zstd/zstd_ldm.h')
-rw-r--r--contrib/zstd/zstd_ldm.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/contrib/zstd/zstd_ldm.h b/contrib/zstd/zstd_ldm.h
index aa2b6c52e..38ef9fb36 100644
--- a/contrib/zstd/zstd_ldm.h
+++ b/contrib/zstd/zstd_ldm.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
@@ -66,6 +66,7 @@ size_t ZSTD_ldm_generateSequences(
*/
size_t ZSTD_ldm_blockCompress(rawSeqStore_t* rawSeqStore,
ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
+ ZSTD_paramSwitch_e useRowMatchFinder,
void const* src, size_t srcSize);
/**
@@ -73,11 +74,17 @@ size_t ZSTD_ldm_blockCompress(rawSeqStore_t* rawSeqStore,
*
* Skip past `srcSize` bytes worth of sequences in `rawSeqStore`.
* Avoids emitting matches less than `minMatch` bytes.
- * Must be called for data with is not passed to ZSTD_ldm_blockCompress().
+ * Must be called for data that is not passed to ZSTD_ldm_blockCompress().
*/
void ZSTD_ldm_skipSequences(rawSeqStore_t* rawSeqStore, size_t srcSize,
U32 const minMatch);
+/* ZSTD_ldm_skipRawSeqStoreBytes():
+ * Moves forward in rawSeqStore by nbBytes, updating fields 'pos' and 'posInSequence'.
+ * Not to be used in conjunction with ZSTD_ldm_skipSequences().
+ * Must be called for data with is not passed to ZSTD_ldm_blockCompress().
+ */
+void ZSTD_ldm_skipRawSeqStoreBytes(rawSeqStore_t* rawSeqStore, size_t nbBytes);
/** ZSTD_ldm_getTableSize() :
* Estimate the space needed for long distance matching tables or 0 if LDM is