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
- Split
Chunk - 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§
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_sizeeach fitting withinsize; 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!