CoffHeader

data class CoffHeader(val machine: MachineType, val numbersOfSections: UShort, val timeDateStamp: TimeDateStamp32, val pointerToSymbolTable: Address32, val numbersOfSymbols: UInt, val sizeOfOptionalHeader: UShort, val characteristics: Characteristics) : ReadableStructure(source)

Represents the COFF header structure.

Constructors

Link copied to clipboard
constructor(machine: MachineType, numbersOfSections: UShort, timeDateStamp: TimeDateStamp32, sizeOfOptionalHeader: UShort, characteristics: Characteristics)
constructor(machine: MachineType, numbersOfSections: UShort, timeDateStamp: TimeDateStamp32, pointerToSymbolTable: Address32, numbersOfSymbols: UInt, sizeOfOptionalHeader: UShort, characteristics: Characteristics)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The flags that indicate the attributes of the file. For specific flag values, see Characteristics.

Link copied to clipboard
open override val fields: Map<String, Any>
Link copied to clipboard

The number that identifies the type of target machine. For more information, see MachineType.

Link copied to clipboard

The number of sections. This indicates the size of the section table, which immediately follows the headers.

Link copied to clipboard

The number of entries in the symbol table. This data can be used to locate the string table, which immediately follows the symbol table. This value should be zero for an image because COFF debugging information is deprecated.

Link copied to clipboard

The file offset of the COFF symbol table, or zero if no COFF symbol table is present. This value should be zero for an image because COFF debugging information is deprecated.

Link copied to clipboard

The size of the optional header, which is required for executable files but not for object files. This value should be zero for an object file. For a description of the header format, see Optional Header (Image Only).

Link copied to clipboard

The low 32 bits of the number of seconds since 00:00 January 1, 1970 (a C run-time time_t value), which indicates when the file was created.