split_raw

Function split_raw 

Source
pub fn split_raw(raw_size: usize, size: u32) -> Result<Vec<Split>, SplitError>
Expand description

Generate a set of splits for a raw image of a given raw_size each fitting within size; The raw size is rounded up to multiple of DEFAULT_BLOCKSIZE as that’s the minimal granularity. When writing out the android sparse image the data should just be padded as needed as well!