pub fn new_custom(poly: u32, initial: u32, final_xor: u32, calc: CalcType) -> Digest {
        let mut rfl: bool = true;
        if let CalcType::Normal = calc {
            rfl = false;
        }

        Digest {
            table: make_table(poly, rfl),
            initial,
            value: initial,
            final_xor,
            calc,
        }
    }
/// Creates a fully customized Digest from input parameters.
///
/// # Example
///
/// ```rust
/// use crc::{crc32, Hasher32};
/// let mut digest = crc32::Digest::new_custom(crc32::IEEE, !0u32, !0u32, crc::CalcType::Reverse);
/// digest.write(b"123456789");
/// assert_eq!(digest.sum32(), 0xcbf43926);
/// ```
Creates a fully customized Digest from input parameters.
Creates a fully customized Digest from input parameters .
pub fn new_custom(poly: u32, initial: u32, final_xor: u32, calc: CalcType) -> Digest {
        let mut rfl: bool = true;
        if let CalcType::Normal = calc {
            rfl = false;
        }
        Digest {
            table: make_table(poly, rfl),
            initial,
            value: initial,
            final_xor,
            calc,
        }
    }
pub fn new_custom ( poly : u32 , initial : u32 , final_xor : u32 , calc : CalcType ) -> Digest { let mut rfl : bool = true ; if let CalcType :: Normal = calc { rfl = false ; } Digest { table : make_table ( poly , rfl ) , initial , value : initial , final_xor , calc , } }
Creates a fully customized Digest from input parameters.
Creates a fully customized Digest from input parameters .
poly
u32
initial
u32
final_xor
u32
calc
CalcType
example
None