Skip to content

Function: hashString() ​

hashString(name): number

Defined in: ssplayer-core/dist/index.d.ts:2228

FNV-1a hash of name, computed by the runtime itself so it always matches the hashes baked into the SSAB (cell-map / cell / animation names). Needed by the name-keyed runtime calls that take a hash rather than a string — the cell override in particular.

The empty string maps to 0 without entering WASM, which is also the "follow the animation" sentinel for the cell override.

Parameters ​

name ​

string

Returns ​

number