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.

init

BitcodeReader.init
pub fn init(allocator: std.mem.Allocator, options: InitOptions) BitcodeReader

File

lib/std/zig/llvm/BitcodeReader.zig:104

Code

pub fn init(allocator: std.mem.Allocator, options: InitOptions) BitcodeReader {
    return .{
        .allocator = allocator,
        .record_arena = .{},
        .reader = options.reader,
        .keep_names = options.keep_names,
        .bit_buffer = 0,
        .bit_offset = 0,
        .stack = .empty,
        .block_info = .empty,
    };
}