Package-level declarations

Types

Link copied to clipboard
value class Elf32Addr(val value: UInt) : ElfPrimitive, Comparable<Elf32Addr>

Represents an unsigned program address in 32-bit ELF format. Equivalent to uint32_t in C.

Link copied to clipboard
@Serializable
@SerialName(value = "Elf32Ehdr")
data class Elf32Ehdr : ReadableStructure, ElfEhdr

Represents the ELF 32-bit file header structure.

Link copied to clipboard
@Serializable
value class Elf32Half(val value: UShort) : ElfPrimitive, Comparable<Elf32Half>

Represents a 16-bit unsigned integer in ELF format. Equivalent to uint16_t in C.

Link copied to clipboard
@Serializable
value class Elf32Off(val value: UInt) : ElfPrimitive, Comparable<Elf32Off>

Represents an unsigned file offset in 32-bit ELF format. Equivalent to uint32_t in C.

Link copied to clipboard
@Serializable
@SerialName(value = "Elf32Phdr")
data class Elf32Phdr : ReadableStructure, ElfPhdr
Link copied to clipboard
@Serializable
@SerialName(value = "Elf32Shdr")
data class Elf32Shdr : ElfShdr

Represents a section header in a 32-bit ELF file.

Link copied to clipboard
@Serializable
value class Elf32Sword(val value: Int) : ElfPrimitive, Comparable<Elf32Sword>

Represents a 32-bit signed integer in ELF format. Equivalent to int32_t in C.

Link copied to clipboard
@Serializable
value class Elf32Word(val value: UInt) : ElfPrimitive, Comparable<Elf32Word>

Represents a 32-bit unsigned integer in ELF format. Equivalent to uint32_t in C.

Link copied to clipboard
value class Elf64Addr(val value: ULong) : ElfPrimitive, Comparable<Elf64Addr>

Represents an unsigned program address in 64-bit ELF format. Equivalent to uint64_t in C.

Link copied to clipboard
@Serializable
@SerialName(value = "Elf64Ehdr")
data class Elf64Ehdr : ReadableStructure, ElfEhdr

Represents the ELF 64-bit file header structure.

Link copied to clipboard
@Serializable
value class Elf64Half(val value: UShort) : ElfPrimitive, Comparable<Elf64Half>

Represents a 16-bit unsigned integer in ELF format. Equivalent to uint16_t in C.

Link copied to clipboard
@Serializable
value class Elf64Off(val value: ULong) : ElfPrimitive, Comparable<Elf64Off>

Represents an unsigned file offset in 64-bit ELF format. Equivalent to uint64_t in C.

Link copied to clipboard
@Serializable
@SerialName(value = "Elf64Phdr")
data class Elf64Phdr : ReadableStructure, ElfPhdr
Link copied to clipboard
@Serializable
@SerialName(value = "Elf64Shdr")
data class Elf64Shdr : ElfShdr

Represents a section header in a 64-bit ELF file.

Link copied to clipboard
@Serializable
value class Elf64Sxword(val value: Long) : ElfPrimitive, Comparable<Elf64Sxword>

Represents a 64-bit signed integer in ELF format. Equivalent to int64_t in C.

Link copied to clipboard
@Serializable
value class Elf64Word(val value: UInt) : ElfPrimitive, Comparable<Elf64Word>

Represents a 32-bit unsigned integer in ELF format. Equivalent to uint32_t in C.

Link copied to clipboard
@Serializable
value class Elf64Xword(val value: ULong) : ElfPrimitive, Comparable<Elf64Xword>

Represents a 64-bit unsigned integer in ELF format. Equivalent to uint64_t in C.

Link copied to clipboard
value class ElfClass(val value: Byte) : Comparable<ElfClass>

Type for C enum ElfClass

Link copied to clipboard
@Serializable(with = ElfData.Serializer::class)
value class ElfData(val value: Byte) : Comparable<ElfData>

Type for C enum ElfData

Link copied to clipboard
@Serializable
sealed interface ElfEhdr : ReadableStructure
Link copied to clipboard
@Serializable
data class ElfExportSymbol : ExportSymbol

Represents an exported symbol in an ELF file

Link copied to clipboard

Represents an ELF file and provides access to its contents.

Link copied to clipboard
open class ElfFileException(message: String, cause: Throwable? = null) : CommonFileException

Represents an exception occurring during ELF file processing.

Link copied to clipboard
@Serializable
data class ElfIdentification : ReadableStructure

Represents the initial bytes of an ELF file that specify how to interpret the file.

Link copied to clipboard
@Serializable
data class ElfImportSymbol(val name: String, val file: String, val binding: ElfSymBinding, val type: ElfSymType) : ImportSymbol

Represents an import symbol in an ELF file

Link copied to clipboard
value class ElfMachine(val value: Short) : Comparable<ElfMachine>

Type for C enum ElfMachine

Link copied to clipboard
value class ElfOsAbi(val value: Byte) : Comparable<ElfOsAbi>

Type for C enum ElfOsAbi

Link copied to clipboard
value class ElfPFlags(val value: Int) : Set<ElfPFlags>

Type for C flag-set ElfPFlags

Link copied to clipboard
@Serializable
sealed interface ElfPhdr : ReadableStructure
Link copied to clipboard
sealed interface ElfPrimitive
Link copied to clipboard
value class ElfPType(val value: Int) : Comparable<ElfPType>

Type for C enum ElfPType

Link copied to clipboard
value class ElfSFlags(val value: Long) : Set<ElfSFlags>

Type for C flag-set ElfSFlags

Link copied to clipboard
@Serializable
sealed interface ElfShdr : ReadableStructure
Link copied to clipboard
value class ElfSType(val value: Int) : Comparable<ElfSType>

Type for C enum ElfSType

Link copied to clipboard
value class ElfSymBinding(val value: Byte) : Comparable<ElfSymBinding>

Type for C enum ElfSymBinding

Link copied to clipboard
value class ElfSymType(val value: Byte) : Comparable<ElfSymType>

Type for C enum ElfSymType

Link copied to clipboard

Type for C enum ElfSymVisibility

Link copied to clipboard
@Serializable(with = ElfType.Serializer::class)
value class ElfType(val value: Short) : Comparable<ElfType>

Type for C enum ElfType

Functions

Link copied to clipboard
fun ElfClass(value: UByte): ElfClass
Link copied to clipboard
fun ElfData(value: UByte): ElfData
Link copied to clipboard
Link copied to clipboard
fun ElfOsAbi(value: UByte): ElfOsAbi
Link copied to clipboard
fun ElfPFlags(value: UInt): ElfPFlags
Link copied to clipboard
fun ElfPType(value: UInt): ElfPType
Link copied to clipboard
Link copied to clipboard
fun ElfSType(value: UInt): ElfSType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ElfType(value: UShort): ElfType