Esc

content_stamp

procedureextensionexperimental2 overloadssince 0.36.1Source
  • macOS: content_stamp works on macOS
  • Linux: content_stamp works on Linux
  • Windows: content_stamp works on Windows
  • Wasm: content_stamp is not available on Wasm

overload 1

content_stamp :: (data: string) -> string

Eight lowercase hex digits: the high half of FNV-1a 64, matching API-site asset URLs. The result is in temporary storage.

Example
assert(content_stamp("") == "cbf29ce4");

overload 2

content_stamp :: (data: [] u8) -> string

Stamps a byte slice, including embedded zero bytes.

Example
data := u8.[104, 101, 108, 108, 111];
assert(content_stamp(data) == "a430d846");

See also