Declaration¶
Source position: coffwriter.pp line 100
type
TCoffResourceWriter = class(TAbstractResourceWriter)
protected
fRoot: type
TRootResTreeNode = class(TResourceTreeNode)
protected
function InternalFind : TAbstractResource;
public
constructor Create;
function CreateSubNode : TResourceTreeNode;
procedure Add;
function FindFreeID : TResID;
end;
var
fRelocations: type
TCoffRelocations = class
protected
function GetCount : Integer;
function GetRelocation : PCoffRelocation;
public
constructor Create;
destructor Destroy;
procedure Add;
procedure AddRelativeToSection;
procedure Clear;
property Count: Integer; {r}
property Items[index : Integer]: PCoffRelocation; {r}
property StartAddress: LongWord; {rw}
property MachineType: TCoffMachineType; {rw}
end;
var
fResDataSectionSymIdx: Word;
fResHandlesSectionSymIdx: Word;
fResDataEntryCurrentRVA: LongWord;
fSymTablePtr: LongWord;
fStringTable: type
TCoffStringTable = class(TStringList)
public
constructor Create;
function Add : Integer;
procedure Delete;
property Size: ptruint; {r}
end;
var
fNumSymtableEntries: LongWord;
fSymStorageClass: Byte;
fOppositeEndianess: Boolean;
procedure WriteEmptyCoffHeader;
procedure WriteEmptySectionHeader;
procedure WriteResStringTable;
procedure WriteRawData;
procedure WriteRelocations;
procedure WriteCoffStringTable;
function GetFixedCoffHeader : TCoffHeader;
procedure FixCoffHeader;
procedure FixSectionHeader;
function GetExtensions : string;
function GetDescription : string;
function PrescanNode : LongWord;
procedure PrescanResourceTree;
procedure Write;
procedure WriteSymbolTable;
public
constructor Create;
destructor Destroy;
property MachineType: TCoffMachineType; {rw}
property OppositeEndianess: Boolean; {rw}
end;
Inheritance¶
Description¶
This class provides a writer for COFF object files containing resources.
COFF is the file format used by Microsoft Windows object files. Usually resources get stored in a object file that can be given to a linker to produce an executable.
MachineType property can be used to set the machine type of the object file to generate.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| MachineType | public | The machine type of the object file |
| OppositeEndianess | public |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| Create | public | |
| Destroy | public | |
| FixCoffHeader | protected | |
| FixSectionHeader | protected | |
| GetDescription | protected | |
| GetExtensions | protected | |
| GetFixedCoffHeader | protected | |
| PrescanNode | protected | |
| PrescanResourceTree | protected | |
| Write | protected | |
| WriteCoffStringTable | protected | |
| WriteEmptyCoffHeader | protected | |
| WriteEmptySectionHeader | protected | |
| WriteRawData | protected | |
| WriteRelocations | protected | |
| WriteResStringTable | protected | |
| WriteSymbolTable | protected |
Fieldss¶
| Member | Visibility | Description |
|---|---|---|
| fNumSymtableEntries | protected | |
| fOppositeEndianess | protected | |
| fRelocations | protected | |
| fResDataEntryCurrentRVA | protected | |
| fResDataSectionSymIdx | protected | |
| fResHandlesSectionSymIdx | protected | |
| fRoot | protected | |
| fStringTable | protected | |
| fSymStorageClass | protected | |
| fSymTablePtr | protected |
See also¶
| Name | Description |
|---|---|
| TCoffResourceWriter.MachineType | The machine type of the object file |
| TAbstractResourceWriter | Base abstract resource writer class |
| TCoffResourceWriter | COFF resource reader |