Struct flate2::Crc
[−]
[src]
pub struct Crc { /* fields omitted */ }
The CRC calculated by a CrcReader.
Methods
impl Crc
[src]
pub fn new() -> Crc
[src]
Create a new CRC.
pub fn sum(&self) -> u32
[src]
bla
pub fn amount(&self) -> u32
[src]
The number of bytes that have been used to calculate the CRC. This value is only accurate if the amount is lower than 232.
pub fn update(&mut self, data: &[u8])
[src]
Update the CRC with the bytes in data
.
pub fn reset(&mut self)
[src]
Reset the CRC.
pub fn combine(&mut self, additional_crc: &Crc)
[src]
Combine the CRC with the CRC for the subsequent block of bytes.