Function zstd::dict::from_samples [] [src]

pub fn from_samples<S: AsRef<[u8]>>(samples: &[S],
                                    max_size: usize)
                                    -> Result<Vec<u8>>

Train a dictionary from multiple samples.

The samples will internaly be copied to a single continuous buffer, so make sure you have enough memory available.

If you need to stretch your system's limits, from_continuous directly uses the given slice.