pub fn clearAndFree(self: *Self, gpa: Allocator) void
Clears the map and releases the backing allocation
self: *Self
gpa: Allocator
232 233 234 235 236 237 238 239 240 241
pub fn clearAndFree(self: *Self, gpa: Allocator) void { self.pointer_stability.lock(); defer self.pointer_stability.unlock(); self.entries.shrinkAndFree(gpa, 0); if (self.index_header) |header| { header.free(gpa); self.index_header = null; } }
Clears the map and releases the backing allocation