Struct crc_any::CRC[][src]

pub struct CRC { /* fields omitted */ }

This struct can help you compute a CRC value.

Methods

impl CRC
[src]

Create a CRC instance by providing the length of bits, expression, reflection, an initial value and a final xor value.

Create a CRC instance by providing an existing lookup table, the length of bits, expression, reflection, an initial value and a final xor value.

Digest some data.

Get the current CRC value (it always returns a u64 value). You can continue calling digest method even after getting a CRC value.

Get the current CRC value (it always returns a ([u8; 8], usize) tuple, where the second value of the tuple means the actual length of this CRC value). You can continue calling digest method even after getting a CRC value.

Get the current CRC value (it always returns a vec instance with a length corresponding to the CRC bits). You can continue calling digest method even after getting a CRC value.

Auto Trait Implementations

impl Send for CRC

impl Sync for CRC