Skip to main content

copy_forward_until_eol

Function copy_forward_until_eol 

Source
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.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here