Support image check

This commit is contained in:
momo5502
2024-12-21 11:32:35 +01:00
parent e9bd94d6d8
commit 50af68ed8f

View File

@@ -110,6 +110,11 @@ struct section
uint32_t section_page_protection{};
uint32_t allocation_attributes{};
bool is_image() const
{
return this->allocation_attributes & SEC_IMAGE;
}
void serialize(utils::buffer_serializer& buffer) const
{
buffer.write(this->name);