Class NativeSymbolsProvider
- Namespace
- AsmResolver.DotNet.Code.Native
- Assembly
- AsmResolver.DotNet.dll
Provides a default implementation for INativeSymbolsProvider interface, which collects instances of ImportedSymbol, and removes any duplicated symbols.
public class NativeSymbolsProvider : INativeSymbolsProvider
- Inheritance
-
NativeSymbolsProvider
- Implements
- Inherited Members
Methods
GetBaseRelocations()
Gets a collection of all base relocations that need to be applied in the final PE image.
public IEnumerable<BaseRelocation> GetBaseRelocations()
Returns
- IEnumerable<BaseRelocation>
The base relocations.
GetExportedSymbols(out uint)
Gets a collection of all symbols that need to be exported in the final PE image.
public IEnumerable<ExportedSymbol> GetExportedSymbols(out uint baseOrdinal)
Parameters
baseOrdinaluint
Returns
- IEnumerable<ExportedSymbol>
The exported symbols.
GetImportedModules()
Gets a collection of all imported external modules.
public IEnumerable<ImportedModule> GetImportedModules()
Returns
- IEnumerable<ImportedModule>
The modules.
ImportSymbol(ISymbol)
Adds a single symbol to the prototype.
public ISymbol ImportSymbol(ISymbol symbol)
Parameters
symbolISymbolThe symbol to import.
Returns
- ISymbol
The imported symbol.
RegisterBaseRelocation(BaseRelocation)
Adds a base relocation to the prototype.
public void RegisterBaseRelocation(BaseRelocation relocation)
Parameters
relocationBaseRelocationThe relocation.
RegisterExportedSymbol(ExportedSymbol)
Adds an exported symbol to the prototype.
public void RegisterExportedSymbol(ExportedSymbol symbol)
Parameters
symbolExportedSymbolThe symbol to export.
RegisterExportedSymbol(ExportedSymbol, uint?)
Adds an exported symbol to the prototype.
public void RegisterExportedSymbol(ExportedSymbol symbol, uint? newOrdinal)
Parameters
symbolExportedSymbolThe symbol to export.
newOrdinaluint?