public long ResolvePositionToSectionData(uint rva, out PESection section) { section = FindSection(rva); if (section == null) { throw new BadImageFormatException(string.Format(SR.ResolveImageSectionFailure, rva)); } return(section.GetPointerToRawData(rva)); }
public bool ResolvePositionToSectionData(uint rva, out long offset, out PESection section) { section = FindSection(rva); if (section == null) { offset = 0; return(false); } offset = section.GetPointerToRawData(rva); return(true); }
public virtual bool TryOpenImageToSectionData(uint rva, out IBinaryAccessor accessor, out PESection section) { section = FindSection(rva); if (section == null) { accessor = null; return(false); } long position = section.GetPointerToRawData(rva); accessor = OpenImage(); accessor.Position = position; return(true); }