Struct flate2::Crc
[−]
[src]
pub struct Crc { /* fields omitted */ }The CRC calculated by a CrcReader.
Methods
impl Crc[src]
fn new() -> Crc[src]
Create a new CRC.
fn sum(&self) -> u32[src]
bla
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.
fn update(&mut self, data: &[u8])[src]
Update the CRC with the bytes in data.
fn reset(&mut self)[src]
Reset the CRC.
fn combine(&mut self, additional_crc: &Crc)[src]
Combine the CRC with the CRC for the subsequent block of bytes.