Skip to main content

parse_packet_ref

Function parse_packet_ref 

Source
pub fn parse_packet_ref(datagram: &[u8]) -> Result<GvspPacketRef<'_>, GvspError>
Expand description

Parse one GVSP datagram without copying it.

Fails only on a datagram too short for the header its own flag announces, or for the fixed fields of a leader or trailer.