- Make a single allocation from
std.heap.page_allocator. - 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
std.heap.page_allocator.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