pub async fn find_max_fit<S: NorFlash>(
flash: &mut S,
flash_range: Range<u32>,
cache: &mut impl CacheImpl,
) -> Result<Option<u32>, Error<S::Error>>
Expand description
Find the largest size of data that can be stored.
This will read through the entire flash to find the largest chunk of data that can be stored, taking alignment requirements of the item into account.
If there is no space left, None
is returned.