TUP.AsmResolver.Offset.ToAsciiStringPtr C# (CSharp) Méthode

ToAsciiStringPtr() public méthode

Converts the offset to an Ascii String pointer.
public ToAsciiStringPtr ( Win32Assembly assembly ) : ulong
assembly Win32Assembly The assembly that contains the offset
Résultat ulong
        public ulong ToAsciiStringPtr(Win32Assembly assembly)
        {
            Section targetsection = Section.GetSectionByRva(assembly, Rva);
            ulong stroffset = Va - assembly._ntHeader.OptionalHeader.ImageBase - targetsection.RVA + targetsection.RawOffset;
               // if (stroffset < 0)
               //     throw new ArgumentException("The target offset is not a valid offset to a string");
            return stroffset;
        }