pub(crate) fn parse<R: io::Read>(reader: &mut Reader<R>) -> io::Result<Header> {
        Ok(Header {
            name: reader.read_vec_header(32)?,
            attributes: reader.read_u16_be()?,
            version: reader.read_u16_be()?,
            created: reader.read_u32_be()?,
            modified: reader.read_u32_be()?,
            backup: reader.read_u32_be()?,
            modnum: reader.read_u32_be()?,
            app_info_id: reader.read_u32_be()?,
            sort_info_id: reader.read_u32_be()?,
            typ_e: reader.read_vec_header(4)?,
            creator: reader.read_vec_header(4)?,
            unique_id_seed: reader.read_u32_be()?,
            next_record_list_id: reader.read_u32_be()?,
            num_records: reader.read_u16_be()?,
        })
    }
/// Parse a header from the content. The reader must be advanced to the starting position of the
/// header, at byte 0.
Parse a header from the content. The reader must be advanced to the starting position of the
header, at byte 0.
Parse a header from the content . The reader must be advanced to the starting position of the header at byte 0 .
pub(crate) fn parse<R: io::Read>(reader: &mut Reader<R>) -> io::Result<Header> {
        Ok(Header {
            name: reader.read_vec_header(32)?,
            attributes: reader.read_u16_be()?,
            version: reader.read_u16_be()?,
            created: reader.read_u32_be()?,
            modified: reader.read_u32_be()?,
            backup: reader.read_u32_be()?,
            modnum: reader.read_u32_be()?,
            app_info_id: reader.read_u32_be()?,
            sort_info_id: reader.read_u32_be()?,
            typ_e: reader.read_vec_header(4)?,
            creator: reader.read_vec_header(4)?,
            unique_id_seed: reader.read_u32_be()?,
            next_record_list_id: reader.read_u32_be()?,
            num_records: reader.read_u16_be()?,
        })
    }
pub ( crate ) fn parse < R : io :: Read > ( reader : & mut Reader < R > ) -> io :: Result < Header > { Ok ( Header { name : reader . read_vec_header ( 32 ) ? , attributes : reader . read_u16_be ( ) ? , version : reader . read_u16_be ( ) ? , created : reader . read_u32_be ( ) ? , modified : reader . read_u32_be ( ) ? , backup : reader . read_u32_be ( ) ? , modnum : reader . read_u32_be ( ) ? , app_info_id : reader . read_u32_be ( ) ? , sort_info_id : reader . read_u32_be ( ) ? , typ_e : reader . read_vec_header ( 4 ) ? , creator : reader . read_vec_header ( 4 ) ? , unique_id_seed : reader . read_u32_be ( ) ? , next_record_list_id : reader . read_u32_be ( ) ? , num_records : reader . read_u16_be ( ) ? , } ) }
Parse a header from the content.
Parse a header from the content .
reader
&mut Reader<R>
reader
&mut Reader<R>