getSegmentByIndex
fn
ElfSegment getSegmentByIndex(ElfFile file, size_t index)Get a segment by its index.
Parameters
file | The ELF file. |
index | The segment index. |
Returns
An ElfSegment for the specified index.
Throws
Exception if the index is out of bounds.