DoxigAlpha

getAlignment

Applicable only to section headers in COFF objects.

Function parameters

Parameters

#

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 getAlignment(self: SectionHeader) ?u16 {
    if (self.flags.ALIGN == 0) return null;
    return std.math.powi(u16, 2, self.flags.ALIGN - 1) catch unreachable;
}