Expand description
§Whole-frame envelopes
A whole-frame envelope serializes semantic metadata and application payload
into one envelope byte value. It is distinct from selected-wire UPWM, which
prefixes a configured metadata profile while the encoded core carries
payload storage separately.
§Walkthrough
- Start with a validated
UOwnedFrame. - Use
NativeUFrameEnvelope::serialize_framewhen open payload identities must survive losslessly. UseProtobufUMessageFrameonly for legacy compatibility and accept its representability checks. - Carry the resulting bytes through an ordinary byte channel.
- Deserialize with the same
UFrameWireFormat; malformed lengths, reserved fields, metadata, payload presence, and unsupported identities fail before a frame is returned. - Verify changes with the envelope round-trip, malformed-input, and projection tests in this module.
Structs§
- NativeU
Frame Envelope - Canonical whole-frame envelope carrying native frame metadata and payload bytes with full fidelity.
- ProtobufU
Message Frame - Legacy compatibility whole-frame wire format using the generated
UMessageProtocol Buffers envelope.
Enums§
- UFrame
Wire Error - Error type used by whole-frame wire formats.
Constants§
- NATIVE_
ENVELOPE_ HEADER_ LEN - Size of the fixed native-envelope placement header in bytes.
- NATIVE_
ENVELOPE_ MAGIC - Magic bytes of the native whole-frame envelope.
- NATIVE_
ENVELOPE_ VERSION - Version of the native whole-frame envelope emitted by this module.
Traits§
- UFrame
Wire Format - Whole-frame wire format for transporting a complete native uProtocol frame.