Skip to main content

truncate_output

Function truncate_output 

Source
fn truncate_output(bytes: &[u8], max: usize) -> String
Expand description

Lossy-UTF8 a captured stream and cap it at max bytes (on a char boundary), flagging truncation. Pure.