public class Elf extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Elf.Elf32 |
static class |
Elf.Elf64 |
static interface |
Elf.ElfSectionLookupResult
A tuple of section index and
ElfSection object returned from lookup functions in this
class. |
Constructor and Description |
---|
Elf(ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
Elf.ElfSectionLookupResult |
getMandatorySectionByName(Object fileName,
String sectionName) |
int |
getNumberOfSections() |
ElfSection |
getSectionByIndex(int index) |
Optional<Elf.ElfSectionLookupResult> |
getSectionByName(String name) |
String |
getSectionName(ElfSectionHeader sectionHeader) |
static boolean |
isElf(ByteBuffer buffer) |
public final ElfHeader header
public Elf(ByteBuffer buffer)
public int getNumberOfSections()
public ElfSection getSectionByIndex(int index)
public String getSectionName(ElfSectionHeader sectionHeader)
public Optional<Elf.ElfSectionLookupResult> getSectionByName(String name)
public Elf.ElfSectionLookupResult getMandatorySectionByName(Object fileName, String sectionName) throws IOException
IOException
public static boolean isElf(ByteBuffer buffer)