Struct gzip_header::Crc [] [src]

pub struct Crc { /* fields omitted */ }

A wrapper struct containing a CRC checksum in the format used by gzip and the amount of bytes input to it mod 2^32.

Methods

impl Crc
[src]

Create a new empty CRC struct.

Return the current checksum value.

Return the number of bytes input.

Update the checksum and byte counter with the provided data.

Reset the checksum and byte counter.

Trait Implementations

impl Debug for Crc
[src]

Formats the value using the given formatter.

impl Clone for Crc
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Crc
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Crc
[src]