Using Zig for Advent of Code
huy.rocks
huy.rocks
This buffer can either be statically allocated, dynamically allocated, or passed in if you have a preexisting buffer.
It is very similar to what you have already implemented on your own, just bundled into its own struct