---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssplayer-pixi-ui/functions/ssFnv1a.md
---
# Function: ssFnv1a()

> **ssFnv1a**(`s`): `number`

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

FNV-1a 32-bit over a string's bytes — the hash the SDK identifies things by.

Identical to the converter and the runtime (`ssconverter/src/utils.rs`
`fnv1a_hash_str`, `ssruntime/src/lib.rs`). The ids it is used on here are
ASCII, so `charCodeAt` is the byte value.

## Parameters

### s

`string`

## Returns

`number`
