Crates.io | qdhex |
lib.rs | qdhex |
version | 0.1.1 |
source | src |
created_at | 2023-06-04 17:10:46.193187 |
updated_at | 2024-09-01 00:58:33.116147 |
description | Simple helper functions to create hex dumps |
homepage | |
repository | https://github.com/ishai42/hexdump |
max_upload_size | |
id | 882459 |
size | 9,947 |
#qdhex
A crate for creating simple hex dumps.
Add this to your Cargo.toml
:
[dependencies]
qdhex = "0.1"
let data = [0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f];
println!("{}", qdhex::formatted_dump_string(0x2000, &data));
Output:
00002000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................