This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
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…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.