sehx 0.1.3

SEnsible HeXadecimal, the ASCII-synergetic little-endian hexadecimal format.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::env;
use std::fs;
use std::io::{self, Write};

use sehx::sehx_u8_buf;

fn main() {
    let filename = env::args().nth(1).unwrap();
    let bytes = fs::read(filename).unwrap();

    let stdout = io::stdout();
    let mut handle = stdout.lock();

    handle
        .write_all(&sehx_u8_buf(&bytes).collect::<Vec<u8>>())
        .unwrap();
}