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.

initCompleteInput

Use this if your input is a single slice. This is effectively equivalent to:

initStreaming(allocator);
feedInput(complete_input);
endInput();
Scanner.initCompleteInput
pub fn initCompleteInput(allocator: Allocator, complete_input: []const u8) @This()

File

lib/std/json/Scanner.zig:76

Code

pub fn initCompleteInput(allocator: Allocator, complete_input: []const u8) @This() {
    return .{
        .stack = BitStack.init(allocator),
        .input = complete_input,
        .is_end_of_input = true,
    };
}