Macro byte_slice::bs_collect_hex
[−]
[src]
macro_rules! bs_collect_hex { ($context:expr, $var:expr, $on_byte:expr, $on_eos:expr) => { ... }; ($context:expr, $var:expr, $on_eos:expr) => { ... }; }
Collect all sequential hex bytes into $var
(u64), and convert them into an unsigned integer. If
$on_byte
is supplied, for each new byte execute $on_byte
. Upon locating end-of-stream
execute $on_eos
.
Exit the collection loop upon locating a non-hex byte.