pub fn remove(self: *BufMap, key: []const u8) void self: *BufMapkey: []const u877
78
79
80
81 pub fn remove(self: *BufMap, key: []const u8) void {
const kv = self.hash_map.fetchRemove(key) orelse return;
self.free(kv.key);
self.free(kv.value);
}
Removes the item from the map and frees its value. This invalidates the value returned by get() for this key.