Skip to main content

Module hashing

Module hashing 

Source
Expand description

Full re-export of zenpixels core types (zero module name collisions!). Portable, endian-independent, stride- and band-invariant XXH3 pixel fingerprinting.

Enabled via the hash Cargo feature (xxhash-rust xxh3, no_std).

Guarantees:

  • Identical u64 digests on 32-bit, 64-bit, little-endian, and big-endian targets.
  • Identical digests regardless of row stride, trailing buffer slop, backing storage variant (Vec, Aligned64, External, ExternalMut), or BandedBuf band sizing.
  • Undefined padding channels (Rgbx, Bgrx), AlphaMode::Opaque stored alpha lanes, and unused high/low bits in non-Full BitPacking / crate::SampleEncoding layouts are excluded from the hash so padding garbage never perturbs fingerprints.

Enumsยง

HashInclusions
Fields included in a portable pixel fingerprint. Storage padding is always excluded.