adapt

Function adapt 

Source
fn adapt(buf: &[u8], write_style: WriteStyle) -> Result<Vec<u8>>