/// Write a range of data to blob from the provided reader
Write a range of data to blob from the provided reader
Write a range of data to blob from the provided reader
pub fn write_from(&self, r: &mut dyn ZeroCopyReader, desc: RafsBioDesc) -> io::Result<usize> {
        let mut count: usize = 0;
        for bio in desc.bi_vec.iter() {
            let mut f = RafsBioDevice::new(bio, &self)?;
            let offset = bio.chunkinfo.compress_offset() + bio.offset as u64;
            count += r.read_to(&mut f, bio.size, offset)?;
        }
        Ok(count)
    }
pub fn write_from ( & self , r : & mut dyn ZeroCopyReader , desc : RafsBioDesc ) -> io :: Result < usize > { let mut count : usize = 0 ; for bio in desc . bi_vec . iter ( ) { let mut f = RafsBioDevice :: new ( bio , & self ) ? ; let offset = bio . chunkinfo . compress_offset ( ) + bio . offset as u64 ; count += r . read_to ( & mut f , bio . size , offset ) ? ; } Ok ( count ) }
Write a range of data to blob from the provided reader
Write a range of data to blob from the provided reader
&self
r
&mut dyn ZeroCopyReader
desc
RafsBioDesc