Skip to main content

nwscript_string_hash_bytes

Function nwscript_string_hash_bytes 

Source
pub fn nwscript_string_hash_bytes(bytes: &[u8]) -> i32
Expand description

Returns the exact NWScript runtime hash for a cooked byte string.

Upstream computes this as XXH32(bytes, 0) ^ XXH32("", 0, 0).