pub fn print_buffer(buf: &[u8], title: &str) {
    println!("{}:", title);
    for byte in buf.iter() {
        if byte.is_ascii_alphabetic() {
            let c = *byte as char;
            print!("{} ", c);
        } else {
            print!("{} ", byte);
        }
    }
    print!("\n");
}
// Print the contents of a byte buffer. For debugging purposes.
Print the contents of a byte buffer. For debugging purposes.
Print the contents of a byte buffer . For debugging purposes .
pub fn print_buffer(buf: &[u8], title: &str) {
    println!("{}:", title);
    for byte in buf.iter() {
        if byte.is_ascii_alphabetic() {
            let c = *byte as char;
            print!("{} ", c);
        } else {
            print!("{} ", byte);
        }
    }
    print!("\n");
}
pub fn print_buffer ( buf : & [ u8 ] , title : & str ) { println ! ( " " title ) ; for byte in buf . iter ( ) { if byte . is_ascii_alphabetic ( ) { let c = * byte as char ; print ! ( " " c ) ; } else { print ! ( " " byte ) ; } } print ! ( " \n " ) ; }
Print the contents of a byte buffer.
Print the contents of a byte buffer .
buf
&[u8]
title
&str