Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can ofc use the *alloc from libc if you want. Otherwise there are different ones in the standard library, ArenaAllocator wraps another allocator, FixedBufferAllocator uses a given byte slice. I recommend to take a look at https://ziglang.org/documentation/master/std/#std.heap to get an overview.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: