Function flussab::text::fixed[][src]

pub fn fixed(input: &mut ByteReader<'_>, offset: usize, fixed: &[u8]) -> usize

Passes over a fixed sequence if present.

If the following data matches fixed, offset is incremented by the length of fixed, otherwise it is left unchanged. The resulting value is returned.

This does not read more data than the length of fixed or up to the first byte that does not match fixed, whichever comes first.