bytes: *const std.ArrayListUnmanaged(u8)pub fn eql(_: @This(), a: u32, b: u32) bool_: @This()a: u32b: u32pub fn eql(_: @This(), a: u32, b: u32) bool {
return a == b;
}pub fn hash(ctx: @This(), key: u32) u64ctx: @This()key: u32pub fn hash(ctx: @This(), key: u32) u64 {
return hashString(mem.sliceTo(ctx.bytes.items[key..], 0));
}pub const StringIndexContext = struct {
bytes: *const std.ArrayListUnmanaged(u8),
pub fn eql(_: @This(), a: u32, b: u32) bool {
return a == b;
}
pub fn hash(ctx: @This(), key: u32) u64 {
return hashString(mem.sliceTo(ctx.bytes.items[key..], 0));
}
}