fn write_all_at_volatile(&mut self, mut slice: VolatileSlice, mut offset: u64) -> Result<()> {
        while !slice.is_empty() {
            match self.write_at_volatile(slice, offset) {
                Ok(0) => return Err(Error::from(ErrorKind::WriteZero)),
                Ok(n) => {
                    slice = slice.offset(n).unwrap();
                    offset = offset.checked_add(n as u64).unwrap();
                }
                Err(ref e) if e.kind() == ErrorKind::Interrupted => {}
                Err(e) => return Err(e),
            }
        }
        Ok(())
    }
/// Writes bytes from this file at `offset` into the given slice until all bytes in the slice
/// are written, or an error is returned.
Writes bytes from this file at `offset` into the given slice until all bytes in the slice
are written, or an error is returned.
Writes bytes from this file at ` offset ` into the given slice until all bytes in the slice are written or an error is returned .
fn write_all_at_volatile(&mut self, mut slice: VolatileSlice, mut offset: u64) -> Result<()> {
        while !slice.is_empty() {
            match self.write_at_volatile(slice, offset) {
                Ok(0) => return Err(Error::from(ErrorKind::WriteZero)),
                Ok(n) => {
                    slice = slice.offset(n).unwrap();
                    offset = offset.checked_add(n as u64).unwrap();
                }
                Err(ref e) if e.kind() == ErrorKind::Interrupted => {}
                Err(e) => return Err(e),
            }
        }
        Ok(())
    }
fn write_all_at_volatile ( & mut self , mut slice : VolatileSlice , mut offset : u64 ) -> Result < ( ) > { while ! slice . is_empty ( ) { match self . write_at_volatile ( slice , offset ) { Ok ( 0 ) => return Err ( Error :: from ( ErrorKind :: WriteZero ) ) , Ok ( n ) => { slice = slice . offset ( n ) . unwrap ( ) ; offset = offset . checked_add ( n as u64 ) . unwrap ( ) ; } Err ( ref e ) if e . kind ( ) == ErrorKind :: Interrupted => { } Err ( e ) => return Err ( e ) , } } Ok ( ( ) ) }
Writes bytes from this file at `offset` into the given slice until all bytes in the slice
are written, or an error is returned.
Writes bytes from this file at ` offset ` into the given slice until all bytes in the slice are written or an error is returned .
&mut self
slice
VolatileSlice
offset
u64