Skip to main content

decode_transport_frame

Function decode_transport_frame 

Source
pub fn decode_transport_frame(bytes: &[u8]) -> Result<ServerFrame>
Expand description

Decodes a length-prefixed transport frame from bytes.

Reads the header and payload lengths from the prefix, validates them against the transport size limit, and reconstructs the ServerFrame; errors on a truncated or oversized buffer.