Struct android_sparse::write::Decoder [−][src]
pub struct Decoder { /* fields omitted */ }
Decodes sparse blocks and writes them to a raw image.
Methods
impl Decoder
[src]
impl Decoder
pub fn new(file: File) -> Result<Self>
[src]
pub fn new(file: File) -> Result<Self>
Creates a new decoder that writes to file
.
pub fn write_block(&mut self, block: &Block) -> Result<()>
[src]
pub fn write_block(&mut self, block: &Block) -> Result<()>
Writes a sparse block to this decoder.
The sparse block is decoded into its raw form and written to this decoder's destination.
pub fn close(self) -> Result<()>
[src]
pub fn close(self) -> Result<()>
Finishes writing the raw image and flushes any buffered data.
Consumes the reader as using it afterward would be invalid.