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

Deframes lines that are terminated by b"\r\n". Ignores solitary b'\n'.

See read_frame.

Errors

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