bare_dump

Function bare_dump 

Source
pub fn bare_dump(data: &[u8]) -> Vec<u8>
Expand description

Create a simple hex dump of the given data. The dump contains pairs of hex digits, separated by spaces, no line breaks, decorations, etc.

ยงExamples

let data = [0x00, 0x01, 0x02, 0x03, 0x04, 0x05];
let target = qdhex::bare_dump(&data);
assert_eq!(target, b"00 01 02 03 04 05");