/// Return the string table for the section headers.
Return the string table for the section headers.
Return the string table for the section headers .
fn section_strings<'data>(
        &self,
        endian: Self::Endian,
        data: Bytes<'data>,
        sections: &[Self::SectionHeader],
    ) -> read::Result<StringTable<'data>> {
        if sections.is_empty() {
            return Ok(StringTable::default());
        }
        let index = self.shstrndx(endian, data)? as usize;
        let shstrtab = sections.get(index).read_error("Invalid ELF e_shstrndx")?;
        let data = shstrtab
            .data(endian, data)
            .read_error("Invalid ELF shstrtab data")?;
        Ok(StringTable::new(data))
    }
fn section_strings < ' data > ( & self , endian : Self :: Endian , data : Bytes < ' data > , sections : & [ Self :: SectionHeader ] , ) -> read :: Result < StringTable < ' data > > { if sections . is_empty ( ) { return Ok ( StringTable :: default ( ) ) ; } let index = self . shstrndx ( endian , data ) ? as usize ; let shstrtab = sections . get ( index ) . read_error ( " " ) ? ; let data = shstrtab . data ( endian , data ) . read_error ( " " ) ? ; Ok ( StringTable :: new ( data ) ) }
Return the string table for the section headers.
Return the string table for the section headers .
&self
endian
Self::Endian
data
Bytes<'data>
sections
&[Self::SectionHeader]