MiniDoom

src/mp_fnv1a.ml

Provides fast, non-cryptographic WAD fingerprint helpers for multiplayer compatibility checks.

Package
(global)
Reachable
Yes

Declarations

_mp_hash_hex_table

_mp_hash_hex_table

Tracks the mutable mp hash hex table value used by the mp fnv1a subsystem.

View source

_MP_HASH_ToHex8

function _MP_HASH_ToHex8(v)

Formats one 32-bit value as eight lowercase hexadecimal characters.

ParameterTypeDefaultDescription
vdynamicโ€”Value consumed by the operation.

View source

_MP_HASH_U32

inline function _MP_HASH_U32(v)

Normalizes integer arithmetic to 32-bit unsigned space.

ParameterTypeDefaultDescription
vdynamicโ€”Value consumed by the operation.

View source

MP_FNV1A_Hex

function MP_FNV1A_Hex(data)

Returns `<fnv32><length32>` as 16 lowercase hex digits for deterministic IWAD compatibility checks. Security: This detects accidental content mismatches; it is not an authentication or tamper-proof hash.

ParameterTypeDefaultDescription
datadynamicโ€”Binary or structured data to process.

View source