DoxigAlpha

getSectionHeaders

Function parameters

Parameters

#
self:*const Coff

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 getSectionHeaders(self: *const Coff) []align(1) const SectionHeader {
    const coff_header = self.getCoffHeader();
    const offset = self.coff_header_offset + @sizeOf(CoffHeader) + coff_header.size_of_optional_header;
    return @as([*]align(1) const SectionHeader, @ptrCast(self.data.ptr + offset))[0..coff_header.number_of_sections];
}