Skip to main content

pad_string

Function pad_string 

Source
fn pad_string(out: &mut Vec<u8>, s: &str, max: usize) -> Result<(), CacheError>
Expand description

Encodes s into a fixed-size zero-padded field. Errors if s is longer than max.