diff --git a/src/hash/murmur3.rs b/src/hash/murmur3.rs index 8c953e7..70d4570 100644 --- a/src/hash/murmur3.rs +++ b/src/hash/murmur3.rs @@ -3,14 +3,18 @@ use murmur3::murmur3_32; use std::io::Result; pub fn hash<'a>(file: &'a mut dyn Readable<'a>, offset: u64, size: u64) -> Result { + println!("checkpoint 1"); let pos_before = file.pos()?; + println!("checkpoint 2"); let mut limited = file.limit(offset, size)?; + println!("checkpoint 3"); let result = murmur3_32(&mut limited, 0x31082007)?; + println!("checkpoint 4"); let file = limited.unlimit(); - + println!("checkpoint 5"); file.to(pos_before)?; - + println!("checkpoint 6"); Ok(result) }