Skip to main content

hexdump

Function hexdump 

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

Generate a hexdump of bytes in the style of xxd or Scapy’s hexdump.

§Example

use stackforge_core::hexdump;
let data = b"Hello, World!";
println!("{}", hexdump(data));