[][src]Function binread::error::magic

pub fn magic<R, B>(
    reader: &mut R,
    expected: B,
    options: &ReadOptions
) -> BinResult<()> where
    B: BinRead<Args = ()> + PartialEq + 'static,
    R: Read + Seek

Read a value then check if it is the expected value