AsmResolver.ImageModuleImport.GetSymbolImportAddress C# (CSharp) Метод

GetSymbolImportAddress() публичный Метод

Determines the import address to use for a specific function.
public GetSymbolImportAddress ( ImageSymbolImport import, bool is32Bit ) : ulong
import ImageSymbolImport The imported symbol to get the address from.
is32Bit bool Specifies whether the address should be a 32-bit or 64-bit address.
Результат ulong
        public ulong GetSymbolImportAddress(ImageSymbolImport import, bool is32Bit)
        {
            int index = SymbolImports.IndexOf(import);
            if (index == -1)
                throw new ArgumentException("Symbol is not present in the module import.", "import");
            return (ulong)(ImportAddressTableRva + index * (is32Bit ? sizeof (uint) : sizeof (ulong)));
        }