(buffer: &[u8], newline: bool)
| 196 | } |
| 197 | |
| 198 | fn print_chunk(buffer: &[u8], newline: bool) { |
| 199 | for (i, byte) in buffer.iter().enumerate() { |
| 200 | if i % 2 == 0 { |
| 201 | print!(" ") |
| 202 | } |
| 203 | print!("{:02x}", byte); |
| 204 | } |
| 205 | if newline { |
| 206 | println!(); |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | // Example: |
| 211 | // Input: [0x00; 0x16] |
no outgoing calls
no test coverage detected