Skip to main content

hex_dump

Function hex_dump 

Source
pub fn hex_dump(data: &[u8]) -> String
Expand description

Render bytes as an xxd-style hex dump for human display.

16 bytes per line: an 8-digit hex offset, the bytes as space-separated hex pairs (grouped in two columns of eight), then the printable-ASCII gutter (non-printable bytes shown as .). No trailing newline.