RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
|
Represents a symbol to be exported from the module. More...
#include <symbol.h>
Public Member Functions | |
ExportedSymbol (std::string name) | |
Creates a symbol exported by name. | |
ExportedSymbol (std::string name, uint16_t hint) | |
Creates a symbol exported by name, with a corresponding hint. | |
ExportedSymbol (uint16_t ordinal, std::string internal_name) | |
Creates a symbol exported by ordinal, with an associated internal name. | |
bool | IsExportedByOrdinal () const |
bool | LoadName (std::string &result) const |
Returns the name of the symbol. | |
bool | LoadOrdinalOrHint (uint16_t &result) const |
Returns the hint or ordinal of the symbol. | |
bool | GetExportedByName (std::string &result) const |
For symbols exported by name, returns the name. | |
bool | GetExportedByName (std::string &result, uint16_t &hint) const |
For symbols exported by name, returns the name and hint (or zero) | |
bool | GetExportedByOrdinal (uint16_t &result) const |
For symbols exported by ordinal, returns the ordinal. | |
bool | GetExportedByOrdinal (uint16_t &result, std::string &result_name) const |
For symbols exported by ordinal, returns the ordinal and internal name. | |
bool | operator== (const ExportedSymbol &other) const |
Compares two symbols for equality. | |
bool | operator!= (const ExportedSymbol &other) const |
Compares two symbols for inequality. | |
bool | operator< (const ExportedSymbol &other) const |
Compares two symbols for ordering. | |
bool | operator>= (const ExportedSymbol &other) const |
Compares two symbols for ordering. | |
bool | operator> (const ExportedSymbol &other) const |
Compares two symbols for ordering. | |
bool | operator<= (const ExportedSymbol &other) const |
Compares two symbols for ordering. | |
Protected Attributes | |
bool | by_ordinal |
std::string | name |
std::optional< uint16_t > | ordinal |
Represents a symbol to be exported from the module.
|
inline |
Creates a symbol exported by name, with a corresponding hint.
This is used exclusively for PE.