Module split

Module split 

Source
Expand description

Helpers to split an image into multiple smaller ones

Structs§

Split
A definition of a split sparse image; When writing out or downloading to a device the (file) header should be written first followed by each chunk
SplitChunk
A definition of one chunk of a split image; When writing out or downloading to a device the (chunk) header should be written out first followed by size bytes from the original file from offset (in bytes) onwards

Enums§

SplitError

Functions§

split_image
Split an existing sparse image based on its file header and chunks into multiple splits fitting into the given size
split_raw
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!