Macro byte_slice::bs_starts_with20 [] [src]

macro_rules! bs_starts_with20 {
    ($context:expr, $pattern:expr) => { ... };
}

Determine if the remaining stream starts with $pattern, comparing only the first 20 bytes.

This macro assumes that $pattern.len() bytes are available for reading.