Class BobLocalizationHash
- Namespace
- BlazOrbit.Localization
- Assembly
- BlazOrbit.Core.dll
FNV-1a 64-bit hash used to convert source literal strings to stable lookup keys at both build time (source generator) and runtime (dynamic-key slow path). The constants are the canonical reference values - do not "optimize" or change them or hashes computed in different builds will diverge.
public static class BobLocalizationHash
- Inheritance
-
objectBobLocalizationHash
Methods
Compute(string)
Computes the FNV-1a 64-bit hash of source over its UTF-16 code units.
public static ulong Compute(string source)
Parameters
sourcestring
Returns
- ulong
Remarks
The hash spans each char as two bytes (low then high) so the result is stable across endianness and matches the build-time source generator implementation. Allocation-free; safe for hot paths.