How can you allocate big chunks using FixedBufferAllocator?

  1. Make a single allocation from std.heap.page_allocator.
  2. Use one of std.bit_set

Note that you can convert two dimensions array to single dimension by using x+y*width as index.

Example: Idiomatic way to allocate memory for bitfields - #7 by dimdin

2 Likes