Skip to main content

Module serde_packed

Module serde_packed 

Source
Expand description

Explicit bulk field adapters within the single Serde/Postcard codec.

Select using #[serde(with = "ic_wire::serde_packed::bools")] (or another adapter below). Ordinary fields are never rewritten. Adoption changes traversal accounting and, except for bools, ordinary-list bytes. Preserve field bounds, coordinate clients and retain original retry/hash bytes. Reference contracts and qualification are recorded in docs/design/parity.md.

Modulesยง

bools
Checked boolean bytes, projected as a browser boolean array.
finite_f32
Finite little-endian float byte fields. Preserves signed zero and subnormals.
finite_f64
Finite little-endian float byte fields. Preserves signed zero and subnormals.
heap_u64
Packed heap backing order; decoding reconstructs the heap. Re-encoding may reorder accepted input. Retain original signed/retry bytes.
nonzero_i64
Packed signed words retaining the nonzero domain rule.