git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / tests / external_matchfinder.h
CommitLineData
648db22b 1/*
2 * Copyright (c) Yann Collet, Meta Platforms, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under both the BSD-style license (found in the
6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 * in the COPYING file in the root directory of this source tree).
8 * You may select, at your option, one of the above-listed licenses.
9 */
10
11#ifndef EXTERNAL_MATCHFINDER
12#define EXTERNAL_MATCHFINDER
13
14#define ZSTD_STATIC_LINKING_ONLY
15#include "zstd.h"
16
17/* See external_matchfinder.c for details on each test case */
18typedef enum {
19 EMF_ZERO_SEQS = 0,
20 EMF_ONE_BIG_SEQ = 1,
21 EMF_LOTS_OF_SEQS = 2,
22 EMF_BIG_ERROR = 3,
23 EMF_SMALL_ERROR = 4,
24 EMF_INVALID_OFFSET = 5,
25 EMF_INVALID_MATCHLEN = 6,
26 EMF_INVALID_LITLEN = 7,
27 EMF_INVALID_LAST_LITS = 8
28} EMF_testCase;
29
30size_t zstreamSequenceProducer(
31 void* sequenceProducerState,
32 ZSTD_Sequence* outSeqs, size_t outSeqsCapacity,
33 const void* src, size_t srcSize,
34 const void* dict, size_t dictSize,
35 int compressionLevel,
36 size_t windowSize
37);
38
39#endif /* EXTERNAL_MATCHFINDER */