1 #ifndef BROTLI_RESEARCH_SIEVE_H_
2 #define BROTLI_RESEARCH_SIEVE_H_
3 
4 #include <cstddef>
5 #include <cstdint>
6 #include <string>
7 #include <vector>
8 
9 /**
10  * Generate a dictionary for given samples.
11  *
12  * @param dictionary_size_limit maximal dictionary size
13  * @param slice_len text slice size
14  * @param sample_sizes vector with sample sizes
15  * @param sample_data concatenated samples
16  * @return generated dictionary
17  */
18 std::string sieve_generate(size_t dictionary_size_limit, size_t slice_len,
19     const std::vector<size_t>& sample_sizes, const uint8_t* sample_data);
20 
21 #endif  // BROTLI_RESEARCH_SIEVE_H_
22