Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

TlsDirectoryEntry

coff.TlsDirectoryEntry
pub fn TlsDirectoryEntry(comptime magic: std.coff.OptionalHeader.Magic) type

File

lib/std/coff.zig:376

Code

pub fn TlsDirectoryEntry(comptime magic: std.coff.OptionalHeader.Magic) type {
    return switch (magic) {
        _ => comptime unreachable,
        .PE32 => extern struct {
            raw_data_start_va: u32,
            raw_data_end_va: u32,
            tls_index_va: u32,
            callbacks_va: u32,
            size_of_zero_fill: u32,
            characteristics: packed struct(u32) {
                _reserved_0: u19,
                alignment: SectionHeader.Flags.Align,
                _reserved_1: u9,
            },
        },
        .@"PE32+" => extern struct {
            raw_data_start_va: u64,
            raw_data_end_va: u64,
            tls_index_va: u64,
            callbacks_va: u64,
            size_of_zero_fill: u32,
            characteristics: packed struct(u32) {
                _reserved_0: u19,
                alignment: SectionHeader.Flags.Align,
                _reserved_1: u9,
            },
        },
    };
}