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.

open

Initialize DWARF info. The caller has the responsibility to initialize most the Dwarf fields before calling. binary_mem is the raw bytes of the main binary file (not the secondary debug info file).

Dwarf.open
pub fn open(d: *Dwarf, gpa: Allocator, endian: Endian) OpenError!void

File

lib/std/debug/Dwarf.zig:310

Code

pub fn open(d: *Dwarf, gpa: Allocator, endian: Endian) OpenError!void {
    try d.scanAllFunctions(gpa, endian);
    try d.scanAllCompileUnits(gpa, endian);
}