SparseSliceReader is an io::Read stream that lazily emits the binary
Android Sparse Image serialization (headers and payload) for a single
SparseFileWriter slice directly from the underlying source reader without
intermediate disk files.
Chunk::write takes an Option of something that implements Read. The compiler still requires a
concrete type for the generic argument even when the Option is None. This constant can be used
in place of None to avoid having to specify a type for the source.
Takes the given file_to_upload for the named partition and creates a
set of temporary files in the given dir in Sparse Image Format. With the
provided max_download_size constraining file size.
Takes the given file_to_upload for the named partition and creates a
set of SparseFileWriter slices in memory with the provided max_download_size
constraining slice size.
Takes the given file_to_upload for the named partition and generates SparseFileWriter
slices on the fly, emitting each slice as soon as it reaches max_download_size.
Takes a provided reader and generates a set of temporary files in dir
in the Sparse image format. With the provided max_download_size
constraining file size.
Takes a provided reader and generates a set of SparseFileWriters representing
the resparsed slices with the provided max_download_size constraining slice size.