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 standard library.
std › coff › TlsDirectoryEntry Public Type Function TlsDirectoryEntry Doc Source Public Type Function std.coff.TlsDirectoryEntry
pub fn TlsDirectoryEntry (comptime magic : std .coff .OptionalHeader .Magic ) type File coff.zig: 376
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404 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 ,
},
},
};
}