Function nextAlloc [src]

Equivalent to nextAllocMax(allocator, when, default_max_value_len); This function is only available after endInput() (or initCompleteInput()) has been called. See also std.json.Token for documentation of nextAlloc*() function behavior.

Prototype

pub fn nextAlloc(self: *@This(), allocator: Allocator, when: AllocWhen) AllocError!Token

Parameters

self: *@This()allocator: Allocatorwhen: AllocWhen

Possible Errors

OutOfMemory Error
SyntaxError Error
UnexpectedEndOfInput Error
ValueTooLong

Source

pub fn nextAlloc(self: *@This(), allocator: Allocator, when: AllocWhen) AllocError!Token { return self.nextAllocMax(allocator, when, default_max_value_len); }