qdhex

Crates.ioqdhex
lib.rsqdhex
version0.1.1
sourcesrc
created_at2023-06-04 17:10:46.193187
updated_at2024-09-01 00:58:33.116147
descriptionSimple helper functions to create hex dumps
homepage
repositoryhttps://github.com/ishai42/hexdump
max_upload_size
id882459
size9,947
(ishai42)

documentation

https://docs.rs/qdhex

README

#qdhex

A crate for creating simple hex dumps.

Usage

Add this to your Cargo.toml:

[dependencies]
qdhex = "0.1"

Example

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 ................
Commit count: 1

cargo fmt