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.

dumpHashInfo

Fetch.dumpHashInfo
fn dumpHashInfo(io: Io, all_files: []const *const HashedFile) !void

File

lib/compiler/Maker/Fetch.zig:1875

Code

fn dumpHashInfo(io: Io, all_files: []const *const HashedFile) !void {
    var stdout_buffer: [1024]u8 = undefined;
    var stdout_writer: Io.File.Writer = .initStreaming(.stdout(), io, &stdout_buffer);
    dumpHashInfoWriter(&stdout_writer.interface, all_files) catch |err| switch (err) {
        error.WriteFailed => return stdout_writer.err.?,
    };
    try stdout_writer.flush();
}