Skip to main content

Module frame

Module frame 

Source
Expand description

Length-prefixed xxh3-64 block framing.

Structs§

DecodedArtifact
One validated framed artifact borrowing its original payload bytes.
FileHeader
Decoded fixed-width file header.
FormatError
Typed, artifact-naming persisted-format validation failure.

Enums§

FormatCheck
The exact validation check that rejected an artifact.
FormatValues
Typed value-bearing facts carried by persisted-format failures.

Constants§

FILE_HEADER_LEN
Fixed header length shared by every persisted file.
FILE_MAGIC
Permanent eight-byte file magic.
FILE_TRAILER_LEN
Whole-file xxh3-64 trailer width.

Functions§

decode_artifact
Validates and decodes one complete single-block artifact.
decode_header
Parses only the fixed 32-byte header and validates its registry declaration.
encode_artifact
Encodes one complete single-block artifact with xxh3-64 block and file checksums.
encode_header
Encodes the shared fixed-width persisted-file header without a body or trailer.