logos.mem.writ.hashing

Module mem · package logos-mem

Functions

fnfnv_init

fn fnv_init() -> u64

Returns the FNV-1a 64-bit offset basis, the initial hash state.

fnfnv_mix_u64

fn fnv_mix_u64(h: u64, v: u64) -> u64

Mixes 8-byte value v into hash state h, one byte at a time (FNV-1a).

fnwrit_hash

fn writ_hash(v: WAny) -> u64

Computes a structural FNV-1a hash of writ value v (value-semantic, not identity). Equal documents (per mem.writ.equal) hash equal; the converse is best-effort only. Map entries are XOR-folded so hash is independent of entry order.