fn memSlot(f: *FuzzAllocator, mem: []u8) u1 f: *FuzzAllocatormem: []u8565
566
567
568
569
570
571
572
573
574
575 fn memSlot(f: *FuzzAllocator, mem: []u8) u1 {
const slot: u1 = if (&mem[0] == &f.bufs[0][0])
0
else if (&mem[0] == &f.bufs[1][0])
1
else
unreachable;
assert((f.used_bitmap >> slot) & 1 == 1);
assert(mem.len == f.used_len[slot]);
return slot;
}