private BasedPointerConverter MakePointerConverter(ThirdGenInteropSectionType section)
        {
            if (Sections[(int)section].Size == 0)
            {
                return(null);
            }

            uint baseAddress = Sections[(int)section].VirtualAddress;

            return(new BasedPointerConverter(baseAddress, (int)(baseAddress)));
        }
예제 #2
0
        private BasedPointerConverter MakePointerConverter(ThirdGenInteropSectionType section)
        {
            if (Sections[(int) section].Size == 0)
                return null;

            uint baseAddress = Sections[(int) section].VirtualAddress;
            uint mask = SectionOffsetMasks[(int) section];
            return new BasedPointerConverter(baseAddress, (int) (baseAddress + mask));
        }