pub fn decode_from_file_buf<T>(&mut self, src: &mut T, version: Version) -> Result<(), Error>
    where
        T: Buf,
    {
        trace!("decoding premable");
        self.base_offset.decode(src, version)?;
        self.batch_len.decode(src, version)?;
        self.header.decode(src, version)?;
        Ok(())
    }
/// decode from buf stored in the file
/// read all excluding records
decode from buf stored in the file
read all excluding records
decode from buf stored in the file read all excluding records
pub fn decode_from_file_buf<T>(&mut self, src: &mut T, version: Version) -> Result<(), Error>
    where
        T: Buf,
    {
        trace!("decoding premable");
        self.base_offset.decode(src, version)?;
        self.batch_len.decode(src, version)?;
        self.header.decode(src, version)?;
        Ok(())
    }
pub fn decode_from_file_buf < T > ( & mut self , src : & mut T , version : Version ) -> Result < ( ) , Error > where T : Buf , { trace ! ( " " ) ; self . base_offset . decode ( src , version ) ? ; self . batch_len . decode ( src , version ) ? ; self . header . decode ( src , version ) ? ; Ok ( ( ) ) }
decode from buf stored in the file
read all excluding records
decode from buf stored in the file read all excluding records
&mut self
src
&mut T
version
Version
&mut self
src
&mut T
version
Version