fn parseFromSliceLeaky(comptime T: type, allocator: Allocator, s: []const u8, options: ParseOptions) ParseError(Scanner)!T
, what kind of situation is this api generally used for? Do we need to manually free leaky and how to free it?
https://ziglang.org/documentation/master/std/#A;std:json.parseFromSlice
From the std docs:
“If you are using a std.heap.ArenaAllocator
or similar, consider calling parseFromSliceLeaky
instead”
1 Like