Crate sparse

Source

Modules§

builder
reader

Constants§

NO_SOURCE
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.

Traits§

Writer
A union trait for Write and Seek that also allows truncation.

Functions§

build_sparse_files
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.
is_sparse_image
Returns whether the image in reader appears to be in the sparse format.
unsparse
Reads a sparse image from source and expands it to its unsparsed representation in dest.