fn pad(&self, mem: SerBuffer) -> Result<(), SerError> {
        let padding_len = self.asize() - self.size();
        if let Err(e) = mem
            .as_mut()
            .write_all(&[0; libc::NLA_ALIGNTO as usize][..padding_len])
        {
            Err(SerError::Wrapped(WrappedError::IOError(e)))
        } else {
            Ok(())
        }
    }
/// Pad the data serialized data structure to alignment
Pad the data serialized data structure to alignment
Pad the data serialized data structure to alignment
fn pad(&self, mem: SerBuffer) -> Result<(), SerError> {
        let padding_len = self.asize() - self.size();
        if let Err(e) = mem
            .as_mut()
            .write_all(&[0; libc::NLA_ALIGNTO as usize][..padding_len])
        {
            Err(SerError::Wrapped(WrappedError::IOError(e)))
        } else {
            Ok(())
        }
    }
fn pad ( & self , mem : SerBuffer ) -> Result < ( ) , SerError > { let padding_len = self . asize ( ) - self . size ( ) ; if let Err ( e ) = mem . as_mut ( ) . write_all ( & [ 0 ; libc :: NLA_ALIGNTO as usize ] [ .. padding_len ] ) { Err ( SerError :: Wrapped ( WrappedError :: IOError ( e ) ) ) } else { Ok ( ( ) ) } }
Pad the data serialized data structure to alignment
Pad the data serialized data structure to alignment
&self
mem
SerBuffer
&self
mem
SerBuffer