getSegmentByIndex

fnElfSegment getSegmentByIndex(ElfFile file, size_t index)

Get a segment by its index.

Parameters

fileThe ELF file.
indexThe segment index.

Returns

An ElfSegment for the specified index.

Throws

Exception if the index is out of bounds.