createFromHeader static method
Implementation
static Section createFromHeader(ImageSectionHeader header) {
late Section section;
switch (header.name.toList()) {
// [.rsrc ]
case [0x2e, 0x72, 0x73, 0x72, 0x63, 0x00, 0x00, 0x00]:
section = SectionResource(header);
default:
section = SectionUnknown(header);
}
return section;
}