Skip to main content

split_flow_datagram

Function split_flow_datagram 

Source
pub fn split_flow_datagram(input: &[u8]) -> Option<(u64, usize)>
Expand description

Splits a received datagram into its flow id and the offset of its payload.

None when the input ends inside the varint. That is not an error: a truncated datagram is dropped and counted like one for an unknown flow (docs/PROTOCOL.md ยง6.9).