pub fn decode_stream_frame(
buffer: &[u8],
) -> Result<Option<(StreamFrame<'_>, usize)>, FrameError>Expand description
Decodes one item from a streaming receive buffer.
Returns Ok(None) until the buffer contains the complete declared item.
The consumed length lets callers retain any following frames already read.