Macro bs_collect

Source
macro_rules! bs_collect {
    ($context:expr, $on_byte:expr, $on_eos:expr) => { ... };
}
Expand description

Iterate $context.stream, and for each byte execute $on_byte. Upon locating end-of-stream execute $on_eos.