pub fn check_write<T: NorFlash>( flash: &T, offset: u32, length: usize, ) -> Result<(), NorFlashErrorKind>
Return whether a write operation is aligned and within bounds.