decodeSectionHeader

fnSectionHeader decodeSectionHeader(const(ubyte)[] data, size_t offset, ElfClass cls, ElfEndian endian)

Decode a section header from raw ELF file bytes.

Parameters

dataRaw ELF file bytes.
offsetOffset of the section header within data.
clsELF class of the file (selects the wire layout).
endianByte order used by the file.

Returns

The decoded generic section header.

Throws

Exception if the header does not fit in data.