Struct fletcher::Fletcher [−][src]
pub struct Fletcher<T> where
T: FletcherAccumulator, { /* fields omitted */ }
Expand description
Type to hold the state for calculating a fletcher checksum.
This is useful if you want to calculate the checksum over several small
chunks of data. If you have an entire block of data the functions
calc_fletcher16
, calc_fletcher32
, calc_fletcher64
simplify
the process.
Implementations
pub fn with_initial_values(
a: <T as FletcherAccumulator>::InputType,
b: <T as FletcherAccumulator>::InputType
) -> Fletcher<T>
pub fn with_initial_values(
a: <T as FletcherAccumulator>::InputType,
b: <T as FletcherAccumulator>::InputType
) -> Fletcher<T>
Construct a new checksum object with a specific set of initial values
Updates the checksum with the given input data