pub fn init(allocator: Allocator, io_reader: *std.Io.Reader) @This()
The allocator is only used to track [] and {} nesting levels.
[]
{}
allocator: Allocator
io_reader: *std.Io.Reader
1579 1580 1581 1582 1583 1584
pub fn init(allocator: Allocator, io_reader: *std.Io.Reader) @This() { return .{ .scanner = Scanner.initStreaming(allocator), .reader = io_reader, }; }
The allocator is only used to track
[]and{}nesting levels.