const fn copy_forward_until_eol(
bytes: &mut [u8],
read_idx: usize,
write_idx: usize,
) -> (usize, usize)Expand description
Brings elements in bytes forward until \n (inclusive) or end of source.
read_idx must be greater than or equal to write_idx.