pub fn deinit(self: *BufMap) void self: *BufMap23
24
25
26
27
28
29
30
31 pub fn deinit(self: *BufMap) void {
var it = self.hash_map.iterator();
while (it.next()) |entry| {
self.free(entry.key_ptr.*);
self.free(entry.value_ptr.*);
}
self.hash_map.deinit();
}
Free the backing storage of the map, as well as all of the stored keys and values.