1 2 3 4 5 6 7 8 9 10 11 12
use std::io::Read; pub(crate) fn skip_bytes<R: ?Sized + Read>( reader: &mut R, count: usize, ) -> Result<(), std::io::Error> { let mut buffer = [0; 1]; for _ in 0..count { reader.read_exact(&mut buffer)?; } Ok(()) }