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: Allocator
when: AllocWhen
Possible Errors
Source
pub fn nextAlloc(self: *@This(), allocator: Allocator, when: AllocWhen) AllocError!Token {
return self.nextAllocMax(allocator, when, default_max_value_len);
}