DoxigAlpha

setAlignment

Function parameters

Parameters

#
self:*SectionHeader
new_alignment:u16

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 setAlignment(self: *SectionHeader, new_alignment: u16) void {
    assert(new_alignment > 0 and new_alignment <= 8192);
    self.flags.ALIGN = @intCast(std.math.log2(new_alignment));
}