toFrame
Encode a device-side FromRadio envelope into a wire Frame (4-byte STREAM_API header + protobuf payload), as a real transport would deliver it.
The single source of truth for the framing tests need when driving an engine through a fake transport — use with FakeRadioTransport.injectFrame for FromRadio variants that have no dedicated inject* helper.
Since
0.2.0