pub fn getSectionName(self: *const Coff, sect_hdr: *align(1) const SectionHeader) error self: *const Coffsect_hdr: *align(1) const SectionHeader1196
1197
1198
1199
1200
1201
1202
1203 pub fn getSectionName(self: *const Coff, sect_hdr: *align(1) const SectionHeader) error{InvalidStrtabSize}![]const u8 {
const name = sect_hdr.getName() orelse blk: {
const strtab = (try self.getStrtab()).?;
const name_offset = sect_hdr.getNameOffset().?;
break :blk strtab.get(name_offset);
};
return name;
}