Macro binspect::write_binspect[][src]

macro_rules! write_binspect {
    ($w: expr, $v: expr) => { ... };
    ($w: expr, $v: expr, $len: expr) => { ... };
}
Expand description

Writes the memory address and the hex representation of an object to std::io::Write.

Examples

let s = "ABC";
let mut buf: Vec<u8> = vec![];
write_binspect!(&mut buf, s).unwrap();
buf.clear();
write_binspect!(&mut buf, *s).unwrap();