Function getAlignment [src]
Applicable only to section headers in COFF objects.
Prototype
pub fn getAlignment(self: SectionHeader) ?u16
Parameters
self: SectionHeader
Source
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;
}