Function zstd::dict::from_files

source ยท
pub fn from_files<I, P>(filenames: I, max_size: usize) -> Result<Vec<u8>>
where P: AsRef<Path>, I: IntoIterator<Item = P>,
Expand description

Train a dict from a list of files.

  • filenames is an iterator of files to load. Each file will be treated as an individual sample.
  • max_size is the maximum size of the dictionary to generate.

The result is the dictionary data. You can, for example, feed it to CDict::create.