Module wire
Expand description
Little-endian integers, LEB128 varints and length-prefixed bytes.
Every decoder in Fusee reads through Reader, which never panics on
malformed input: it returns DecodeError instead. The fuzz targets rely
on that.
Structs§
- Decode
Error - Malformed input. Carries a static reason so decoding never allocates on the error path.
- Reader
- A bounds-checked cursor over a byte slice.
Constants§
- MAX_
PAYLOAD - Largest single payload a record or frame may carry (64 MiB).
Functions§
- checksum64
- 64-bit checksum of
partsin order: XXH64 of each part, seeded with the checksum of the parts before it, so every bit of the result depends on every part. Used for hash chains and dedup keys, where 32 bits would make accidental matches too likely over billions of entries. - hash_id
- Stable 64-bit hash for routing workflow IDs to shards and indexing them. FNV-1a followed by a finalizer; stable across versions and platforms.
- put_
bytes - put_u32
- put_u64
- put_
varint - varint_
len - xxh64
- xxHash64 (XXH64) of
data. Stable across versions and platforms.