Function deframe_line

Source
pub fn deframe_line(
    data: &[u8],
) -> Result<(usize, Option<Range<usize>>), MalformedInputError>
Expand description

Deframes lines that are terminated by either b'\n' or b"\r\n".

See read_frame.

ยงErrors

Returns an error when data does not contain b'\n' or b"\r\n".