Allocator.resize

There are four important methods on Zig's std.mem.Allocator interface that Zig developers must be comfortable with: alloc(T, n) - which creates an array of n items of type T , free(ptr) - which frees memory allocate with alloc (although, this is implementation specific ), create(T) - which creates a single item of type T , and destroy(ptr) - which destroys an item created with create While you…