DoxigAlpha

Reader

All next*() methods here handle error.BufferUnderrun from std.json.Scanner, and then read from the reader.

Fields of this type

Fields

#
reader:*std.Io.Reader

The allocator is only used to track `[]` and `{}` nesting levels.

Functions

#
init
The allocator is only used to track `[]` and `{}` nesting levels.
enableDiagnostics
Calls `std.json.Scanner.enableDiagnostics`.
nextAlloc
Equivalent to `nextAllocMax(allocator, when, default_max_value_len);`
nextAllocMax
See also `std.json.Token` for documentation of `nextAlloc*()` function behavior.
allocNextIntoArrayList
Equivalent to `allocNextIntoArrayListMax(value_list, when, default_max_value_len);`
allocNextIntoArrayListMax
Calls `std.json.Scanner.allocNextIntoArrayListMax` and handles `error.BufferUnderrun`.
skipValue
Like `std.json.Scanner.skipValue`, but handles `error.BufferUnderrun`.
skipUntilStackHeight
Like `std.json.Scanner.skipUntilStackHeight()` but handles `error.BufferUnderrun`.
stackHeight
Calls `std.json.Scanner.stackHeight`.
ensureTotalStackCapacity
Calls `std.json.Scanner.ensureTotalStackCapacity`.
next
See `std.json.Token` for documentation of this function.
peekNextTokenType
See `std.json.Scanner.peekNextTokenType()`.

Error sets in this namespace

Error Sets

#