Add method to find a section

This commit is contained in:
de4dot 2012-04-24 23:00:36 +02:00
parent 3a9422f798
commit d755780e7c

View File

@ -67,6 +67,14 @@ namespace de4dot.PE {
init();
}
public SectionHeader findSection(string displayName) {
foreach (var section in sectionHeaders) {
if (section.displayName == displayName)
return section;
}
return null;
}
void seek(uint position) {
reader.BaseStream.Position = position;
}