MCPcopy Index your code
hub / github.com/Firstyear/opensuse-proxy-cache / cmd_parser

Function cmd_parser

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

Source from the content-addressed store, hash-verified

235// For the set command we can just return the size and start of bytes?
236
237pub fn cmd_parser(input: &[u8]) -> IResult<&[u8], (Cmd<'_>, usize)> {
238 trace!(?input);
239 trace!(input_str = %String::from_utf8_lossy(input));
240 alt((
241 array4_parser,
242 array3_parser,
243 array2_parser,
244 array1_parser,
245 wait_parser,
246 ))(input)
247}
248
249pub fn tag_eol(input: &[u8]) -> IResult<&[u8], &[u8]> {
250 tag(b"\r\n")(input)

Callers 2

cmd_testFunction · 0.85
decode_cmdMethod · 0.85

Calls

no outgoing calls

Tested by 1

cmd_testFunction · 0.68