Skip to main content

format_hex_dump

Function format_hex_dump 

Source
pub fn format_hex_dump(bytes: &[u8]) -> String
Expand description

Format raw bytes as a hex dump in the classic hexdump -C style.

Each line shows: 8-digit hex offset, 16 bytes in two groups of 8, and an ASCII representation where non-printable bytes appear as ..