DoxigAlpha

getSectionName

Function parameters

Parameters

#
self:*const Coff
sect_hdr:*align(1) const SectionHeader

Type definitions in this namespace

Types

#
ImportHintNameEntry
Every name ends with a NULL byte.

Error sets in this namespace

Error Sets

#

= 0x10b

Values

#

Source

Implementation

#
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;
}