(input: &[u8])
| 235 | // For the set command we can just return the size and start of bytes? |
| 236 | |
| 237 | pub 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 | |
| 249 | pub fn tag_eol(input: &[u8]) -> IResult<&[u8], &[u8]> { |
| 250 | tag(b"\r\n")(input) |
no outgoing calls