pub fn drain_complete_lines(buf: &mut Vec<u8>) -> Vec<String>Expand description
Drain all complete newline-terminated lines out of buf, decoding each
as UTF-8 and dropping the trailing \n. Any partial trailing line stays
in buf so the caller can append more bytes and try again.