示例#1
0
        protected BinaryParser OpenSection(PESection section)
        {
            PscxArgumentException.ThrowIfIsNull(section);

            uint index = (section.PointerToRawData);
            uint count = (section.SizeOfRawData);

            return(new BinaryParser(OpenImage(index)));
        }
示例#2
0
        protected BinaryParser OpenDirectory(PEDataDirectory dir)
        {
            PESection section = FindSectionByRva(dir.VirtualAddress);

            if (section == null)
            {
                InvalidPEFileException.ThrowInvalidRva();
            }

            uint index = (section.PointerToRawData + (dir.VirtualAddress - section.VirtualAdress));
            uint count = (dir.Size);

            Stream imageStream = OpenImage(index);

            return(new BinaryParser(imageStream, index));
        }
示例#3
0
        protected BinaryParser OpenSection(PESection section)
        {
            PscxArgumentException.ThrowIfIsNull(section);

            uint index = (section.PointerToRawData);
            uint count = (section.SizeOfRawData);

            return new BinaryParser(OpenImage(index));
        }