pub fn write_padding(&mut self, size: usize) -> Result<()> {
        if size > RAFS_ALIGNMENT {
            return Err(einval!("invalid padding size"));
        }
        let padding = [0u8; RAFS_ALIGNMENT];
        self.write_all(&padding[0..size])
    }
/// write padding to align to RAFS_ALIGNMENT.
write padding to align to RAFS_ALIGNMENT.
write padding to align to RAFS_ALIGNMENT .
pub fn write_padding(&mut self, size: usize) -> Result<()> {
        if size > RAFS_ALIGNMENT {
            return Err(einval!("invalid padding size"));
        }
        let padding = [0u8; RAFS_ALIGNMENT];
        self.write_all(&padding[0..size])
    }
pub fn write_padding ( & mut self , size : usize ) -> Result < ( ) > { if size > RAFS_ALIGNMENT { return Err ( einval ! ( " " ) ) ; } let padding = [ 0u8 ; RAFS_ALIGNMENT ] ; self . write_all ( & padding [ 0 .. size ] ) }
write padding to align to RAFS_ALIGNMENT.
write padding to align to RAFS_ALIGNMENT .
&mut self
size
usize
&mut self
size
usize