Function binread::error::magic [−][src]
pub fn magic<R, B>(
reader: &mut R,
expected: B,
options: &ReadOptions
) -> BinResult<()> where
B: BinRead<Args = ()> + PartialEq + Sync + Send + 'static,
R: Read + Seek,
Expand description
Read a value then check if it is the expected value