zerodds-wire-codec
Executes an ast-layout plan against a value, in both directions, over any value representation.
- Source: crates/wire-codec
- API docs: docs.rs/zerodds-wire-codec
Reflective execution of a ZeroDDS AST layout plan against a value, in both directions. The crate provides encoding, decoding, canonicalization, defaults and value-contract checking. It does not parse IDL or operate DDS endpoints.
Source reads a value for encoding; Sink constructs a value during decoding. This keeps execution independent of any one value representation. The default serde-json feature supplies the JSON implementation and can be disabled by consumers using another representation.
Feature flags
| Feature | Default | Purpose |
|---|---|---|
serde-json |
✅ | The JSON implementation of Source and Sink. |
Position
- Framing and dialect choices come from
zerodds-ast-layout; byte operations come fromzerodds-wire. - The IDL/JSON measurement front end on top of it is
zerodds-wire-probe.
zerodds-wire-codec
Führt einen Plan aus ast-layout gegen einen Wert aus, in beide Richtungen, über jede Darstellung von Werten.
- Quelle: crates/wire-codec
- API-Docs: docs.rs/zerodds-wire-codec
Reflektive Ausführung eines Layoutplans über dem AST von ZeroDDS gegen einen Wert, in beide Richtungen. Die Crate bietet Kodieren, Dekodieren, Kanonisierung, Standardwerte und die Prüfung des Wertevertrags. Sie parst kein IDL und betreibt keine DDS-Endpoints.
Source liest einen Wert zum Kodieren; Sink baut beim Dekodieren einen Wert auf. Dadurch hängt die Ausführung von keiner bestimmten Darstellung von Werten ab. Das Standard-Feature serde-json liefert die JSON-Implementierung; wer eine andere Darstellung nutzt, kann es abschalten.
Feature-Flags
| Feature | Default | Zweck |
|---|---|---|
serde-json |
✅ | Die JSON-Implementierung von Source und Sink. |
Stellung
- Rahmung und Dialektentscheidungen kommen aus
zerodds-ast-layout, die Byteoperationen auszerodds-wire. - Das Messfrontend für IDL/JSON darauf ist
zerodds-wire-probe.