expose crc32 type in return

This commit is contained in:
2025-08-19 00:07:13 -04:00
parent 95fbadfc09
commit 4f86b50737
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
use super::*;
use crc::Table;
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub enum CRC32TYPE {
CKSUM,
XFER,
@@ -53,7 +54,7 @@ impl Hasher for CRC32 {
}
fn complete(self) -> HashReturn {
HashReturn::CRC32(self.digester.finalize())
HashReturn::CRC32(self.digester.finalize(), self.crc32type)
}
}