pub fn reIndexContext(self: *Self, gpa: Allocator, ctx: Context) Oom!void 877
878
879
880
881
882
883
884
885
886 pub fn reIndexContext(self: *Self, gpa: Allocator, ctx: Context) Oom!void {
// Recompute all hashes.
if (store_hash) {
for (self.keys(), self.entries.items(.hash)) |key, *hash| {
const h = checkedHash(ctx, key);
hash.* = h;
}
}
try rebuildIndex(self, gpa, ctx);
}