pub fn verify(&mut self, data: &[u8], address: u32) -> Result<()> {
        let crc = self.read_crc(address, data.len())?;
        if crc == crc32(data) {
            Ok(())
        } else {
            Err(Error::VerificationError)
        }
    }
/// Verifies the supplied buffer against the target memory region beginning at the supplied
/// address with a CRC32 check.
Verifies the supplied buffer against the target memory region beginning at the supplied
address with a CRC32 check.
Verifies the supplied buffer against the target memory region beginning at the supplied address with a CRC32 check .
pub fn verify(&mut self, data: &[u8], address: u32) -> Result<()> {
        let crc = self.read_crc(address, data.len())?;
        if crc == crc32(data) {
            Ok(())
        } else {
            Err(Error::VerificationError)
        }
    }
pub fn verify ( & mut self , data : & [ u8 ] , address : u32 ) -> Result < ( ) > { let crc = self . read_crc ( address , data . len ( ) ) ? ; if crc == crc32 ( data ) { Ok ( ( ) ) } else { Err ( Error :: VerificationError ) } }
Verifies the supplied buffer against the target memory region beginning at the supplied
address with a CRC32 check.
Verifies the supplied buffer against the target memory region beginning at the supplied address with a CRC32 check .
&mut self
data
&[u8]
address
u32
&mut self
data
&[u8]
address
u32