Skip to main content

read_pkt_line

Function read_pkt_line 

Source
pub fn read_pkt_line(bytes: &mut Bytes) -> (usize, Bytes)
Expand description

Read a packet line from the given bytes buffer

Returns a tuple of (bytes_consumed, packet_data)

This is the original simple implementation from ceres