parse

fun parse(bytes: ByteArray, off: Int, ident: ElfIdentification, is64Bit: Boolean): ElfPhdr(source)

Parse an ELF program header from a byte array based on the ELF identification.

Return

An instance of ElfPhdr representing the parsed program header.

Parameters

bytes

The byte array containing the ELF program header data.

off

The offset in the byte array where the program header starts.

ident

The ELF identification structure that indicates whether this is a 32-bit or 64-bit ELF file.