moddef_core/codec/mod.rs
1// SPDX-License-Identifier: Apache-2.0
2
3//! Codec core (spec §8–§15): pure functions over [`crate::desc::PointDesc`],
4//! `no_std` and allocation-free. Kept in behavioral lockstep with go/codec
5//! and moddef-ts's codec (shared vector suite in the conformance tests).
6
7mod bytes;
8mod rat;
9
10pub mod decode;
11pub mod encode;
12
13pub use bytes::{assemble_u64, mask_for, words_from_u64};
14pub use decode::{decode, decode_bytes, decode_raw, decode_str, Ctx};
15pub use encode::{encode, encode_bytes, encode_str, validate_write};
16pub use rat::Rat;