Struct android_sparse::file::File [−][src]
pub struct File { /* fields omitted */ }A sparse file.
Provides methods to add chunks and iterate over its chunks.
Methods
impl File[src]
impl Filepub fn new() -> Self[src]
pub fn new() -> SelfCreates a new empty sparse file.
pub fn num_blocks(&self) -> u32[src]
pub fn num_blocks(&self) -> u32Returns the number of blocks in the sparse file.
pub fn num_chunks(&self) -> u32[src]
pub fn num_chunks(&self) -> u32Returns the number of chunks in the sparse file.
pub fn add_chunk(&mut self, chunk: Chunk)[src]
pub fn add_chunk(&mut self, chunk: Chunk)Adds a chunk to the sparse file.
pub fn chunk_iter(&self) -> ChunkIter[src]
pub fn chunk_iter(&self) -> ChunkIterIterates over the chunks in the sparse file.
Trait Implementations
impl Debug for File[src]
impl Debug for Filefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for File[src]
impl Default for File