pub fn read_pkt_line(bytes: &mut Bytes) -> (usize, Bytes)
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