Struct image::png::hash::Crc32 [-] [+] [src]

pub struct Crc32 {
    // some fields omitted
}

An Implementation of the Crc-32 checksum

Methods

impl Crc32

fn new() -> Crc32

Create a new hasher.

fn update(&mut self, buf: &[u8])

Update the internal hasher with the bytes from buf

fn checksum(&self) -> u32

Return the computed hash.

fn reset(&mut self)

Reset this hasher to its initial state.

Trait Implementations

Derived Implementations

impl Copy for Crc32

impl Clone for Crc32

fn clone(&self) -> Crc32

fn clone_from(&mut self, source: &Self)