Struct android_sparse::write::Writer[][src]

pub struct Writer { /* fields omitted */ }

Writes sparse blocks to a sparse image.

Methods

impl Writer
[src]

Creates a new writer that writes to file.

The created writer skips checksum calculation in favor of speed. To get a writer that does checksum calculation, use Writer::with_crc instead.

Creates a new writer that writes to file and adds a checksum at the end.

Writes a sparse block to this writer.

The sparse block is converted into the sparse file format and written to this decoder's destination.

Finishes writing the sparse image and flushes any buffered data.

Consumes the reader as using it afterward would be invalid.

Trait Implementations

impl Drop for Writer
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for Writer

impl Sync for Writer