pub const fn new(poly: u64) -> Digest {
        Digest {
            table: make_table(poly, true),
            initial: 0u64,
            value: 0u64,
            final_xor: 0u64,
            calc: CalcType::Compat,
        }
    }
/// Creates a new Digest from input polynomial.
///
/// # Example
///
/// ```rust
/// use crc::{crc64, Hasher64};
/// let mut digest = crc64::Digest::new(crc64::ECMA);
/// digest.write(b"123456789");
/// assert_eq!(digest.sum64(), 0x995dc9bbdf1939fa);;
/// ```
Creates a new Digest from input polynomial.
Creates a new Digest from input polynomial .
pub const fn new(poly: u64) -> Digest {
        Digest {
            table: make_table(poly, true),
            initial: 0u64,
            value: 0u64,
            final_xor: 0u64,
            calc: CalcType::Compat,
        }
    }
pub const fn new ( poly : u64 ) -> Digest { Digest { table : make_table ( poly , true ) , initial : 0u64 , value : 0u64 , final_xor : 0u64 , calc : CalcType :: Compat , } }
Creates a new Digest from input polynomial.
Creates a new Digest from input polynomial .
poly
u64
example
None