#How can I make more space in a heap buffer?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
The standard allocator interface has a resize operation: https://ziglang.org/documentation/master/std/#A;std:mem.Allocator.resize
Resize can fail if the allocation can't grow anymore.
You can also just use a std.ArrayList(T) which takes care of growing it's internal buffer for you.