MCPcopy Index your code
hub / github.com/FrameworkComputer/framework-system / print_chunk

Function print_chunk

framework_lib/src/util.rs:198–208  ·  view source on GitHub ↗
(buffer: &[u8], newline: bool)

Source from the content-addressed store, hash-verified

196}
197
198fn 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]

Callers 1

print_multiline_bufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected