fn pad_string(out: &mut Vec<u8>, s: &str, max: usize) -> Result<(), CacheError>
Encodes s into a fixed-size zero-padded field. Errors if s is longer than max.
s
max