/// Parse the raw PE file data.
Parse the raw PE file data.
Parse the raw PE file data .
pub fn parse(data: &'data [u8]) -> Result<Self> {
        let data = Bytes(data);
        let dos_header = pe::ImageDosHeader::parse(data)?;
        let (nt_headers, data_directories, nt_tail) = dos_header.nt_headers::<Pe>(data)?;
        let sections = nt_headers.sections(nt_tail)?;
        let symbols = nt_headers.symbols(data)?;
        Ok(PeFile {
            dos_header,
            nt_headers,
            data_directories,
            sections,
            symbols,
            data,
        })
    }
pub fn parse ( data : & ' data [ u8 ] ) -> Result < Self > { let data = Bytes ( data ) ; let dos_header = pe :: ImageDosHeader :: parse ( data ) ? ; let ( nt_headers , data_directories , nt_tail ) = dos_header . nt_headers :: < Pe > ( data ) ? ; let sections = nt_headers . sections ( nt_tail ) ? ; let symbols = nt_headers . symbols ( data ) ? ; Ok ( PeFile { dos_header , nt_headers , data_directories , sections , symbols , data , } ) }
Parse the raw PE file data.
Parse the raw PE file data .
data
&'data [u8]