pub fn train_zstd(
id: u8,
samples: &[&[u8]],
target_size: usize,
) -> Option<TrainedDictionary>Expand description
Train a ZSTD dictionary from samples using the default
FrequencyTrainer. Returns None if samples is empty, target
size is 0, or the trainer produces an empty dictionary (not
enough signal).
id is the caller-allocated dictionary id (0x00..=0xFE).