0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-07-12 08:40:26 +03:00

Move section code checking logic from SectionHeaderParser to SectionHeader class

This commit is contained in:
bird_egop
2025-04-12 17:20:51 +03:00
parent f1a2fca4f3
commit e4adb45ed2
3 changed files with 45 additions and 16 deletions

View File

@ -203,7 +203,7 @@ namespace X86Disassembler.PE
for (int i = 0; i < SectionHeaders.Count; i++)
{
if (_sectionHeaderParser.IsSectionContainsCode(SectionHeaders[i]))
if (SectionHeaders[i].ContainsCode())
{
codeSections.Add(i);
}
@ -219,7 +219,7 @@ namespace X86Disassembler.PE
/// <returns>True if the section contains code, false otherwise</returns>
public bool IsSectionContainsCode(SectionHeader section)
{
return _sectionHeaderParser.IsSectionContainsCode(section);
return section.ContainsCode();
}
}
}