pub fn read_at<'d>(&mut self, buffer: &'d mut [u8], address: u32) -> Result<Read<'d, '_, T>> {
        // Ensure that the requested area is fully within application flash
        let bootloader_info = self.bootloader_info()?;
        if (bootloader_info.application_base > address)
            || (bootloader_info.application_base as usize + bootloader_info.application_size
                < address as usize + buffer.len())
        {
            return Err(Error::InvalidRequest);
        }

        Ok(Read::at(self, buffer, address))
    }
/// Reads from the target's memory into a buffer.
Reads from the target's memory into a buffer.
Reads from the target ' s memory into a buffer .
pub fn read_at<'d>(&mut self, buffer: &'d mut [u8], address: u32) -> Result<Read<'d, '_, T>> {
        // Ensure that the requested area is fully within application flash
        let bootloader_info = self.bootloader_info()?;
        if (bootloader_info.application_base > address)
            || (bootloader_info.application_base as usize + bootloader_info.application_size
                < address as usize + buffer.len())
        {
            return Err(Error::InvalidRequest);
        }
        Ok(Read::at(self, buffer, address))
    }
pub fn read_at < ' d > ( & mut self , buffer : & ' d mut [ u8 ] , address : u32 ) -> Result < Read < ' d , ' _ , T > > { // Ensure that the requested area is fully within application flash let bootloader_info = self . bootloader_info ( ) ? ; if ( bootloader_info . application_base > address ) || ( bootloader_info . application_base as usize + bootloader_info . application_size < address as usize + buffer . len ( ) ) { return Err ( Error :: InvalidRequest ) ; } Ok ( Read :: at ( self , buffer , address ) ) }
Reads from the target's memory into a buffer.
Reads from the target ' s memory into a buffer .
&mut self
buffer
&'d mut [u8]
address
u32
&mut self
buffer
&'d mut [u8]
address
u32