fn parse<'data>(data: Bytes<'data>) -> read::Result<&'data Self> {
        let header = data
            .read_at::<Self>(0)
            .read_error("Invalid ELF header size or alignment")?;
        if !header.is_supported() {
            return Err(Error("Unsupported ELF header"));
        }
        // TODO: Check self.e_ehsize?
        Ok(header)
    }
/// Read the file header.
///
/// Also checks that the ident field in the file header is a supported format.
Read the file header.
Also checks that the ident field in the file header is a supported format.
Read the file header . Also checks that the ident field in the file header is a supported format .
fn parse<'data>(data: Bytes<'data>) -> read::Result<&'data Self> {
        let header = data
            .read_at::<Self>(0)
            .read_error("Invalid ELF header size or alignment")?;
        if !header.is_supported() {
            return Err(Error("Unsupported ELF header"));
        }
        // TODO: Check self.e_ehsize?
        Ok(header)
    }
fn parse < ' data > ( data : Bytes < ' data > ) -> read :: Result < & ' data Self > { let header = data . read_at :: < Self > ( 0 ) . read_error ( " " ) ? ; if ! header . is_supported ( ) { return Err ( Error ( " " ) ) ; } // TODO: Check self.e_ehsize? Ok ( header ) }
Read the file header.
Read the file header .
data
Bytes<'data>
data
Bytes<'data>