Skip to main content

Module codec

Module codec 

Source
Expand description

Checkpoint serialization codec.

Provides format-agnostic serialization for checkpoint data.

  • Default (JSON): Human-readable, backward compatible with all existing checkpoints.
  • Binary (MessagePack): Compact and fast, enabled via the binary-codec feature flag.

The codec auto-detects the format on deserialization by inspecting the first byte, so checkpoints written in either format can always be read back regardless of which feature is currently enabled.

Enums§

CheckpointFormat
Serialization format for checkpoint data.

Functions§

deserialize
Deserialize a value, auto-detecting the format from the data.
serialize
Serialize a value using the specified format.