Skip to main content

CfdpChecksum

Trait CfdpChecksum 

Source
pub trait CfdpChecksum: Send {
    // Required methods
    fn update(&mut self, data: &[u8]);
    fn finalize(self) -> u32;
}
Expand description

A synchronous, stateful checksum calculator.

Required Methods§

Source

fn update(&mut self, data: &[u8])

Updates the internal state with a new chunk of data.

Source

fn finalize(self) -> u32

Consumes the calculator and returns the final 32-bit checksum.

Implementors§