MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / line_parser

Function line_parser

redis-server/src/parser.rs:34–44  ·  view source on GitHub ↗
(input: &[u8])

Source from the content-addressed store, hash-verified

32}
33
34fn line_parser(input: &[u8]) -> IResult<&[u8], (&[u8], usize)> {
35 let (rem, ln) = take_until("\r\n")(input)?;
36 // alt((auth_parser, ver_parser, set_parser))(i)
37
38 let (rem, _) = take(2u32)(rem)?;
39
40 // trace!("ln {:?}", String::from_utf8(ln.to_vec()));
41 // trace!("rem {:?}", String::from_utf8(rem.to_vec()));
42
43 Ok((rem, (ln, ln.len() + 2)))
44}
45
46fn bulkstrln_parser(input: &[u8]) -> IResult<&[u8], (u32, usize)> {
47 let mut taken = 0;

Callers 5

bulkstrln_parserFunction · 0.85
array4_parserFunction · 0.85
array3_parserFunction · 0.85
array2_parserFunction · 0.85
array1_parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected