Function hash [src]
Prototype
pub fn hash(self: MapContext, a: File) u32
Parameters
self: MapContext
a: File
Source
pub fn hash(self: MapContext, a: File) u32 {
const a_basename = span(self.string_bytes[@intFromEnum(a.basename)..]);
return @truncate(Hash.hash(a.directory_index, a_basename));
}