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 › debug › ElfFile › Section Private Struct Section Doc Source Private Struct std.debug.ElfFile.Section
const Section = struct Fields header : elf .Elf64_Shdr bytes : []const u8 Types Values File debug/ElfFile.zig: 347
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371 const Section = struct {
header : elf .Elf64_Shdr ,
bytes : []const u8 ,
const Id = enum {
// DWARF sections: see `Dwarf.Section.Id`.
debug_info ,
debug_abbrev ,
debug_str ,
debug_str_offsets ,
debug_line ,
debug_line_str ,
debug_ranges ,
debug_loclists ,
debug_rnglists ,
debug_addr ,
debug_names ,
// Then anything else we're interested in.
gnu_debuglink ,
eh_frame ,
debug_frame ,
symtab ,
strtab ,
};
const Array = std .enums .EnumArray (Section .Id , ?Section );
}
Only used locally, during
load.