MCPcopy Create free account
hub / github.com/F-Stack/f-stack / parser_read_uint8

Function parser_read_uint8

dpdk/examples/ip_pipeline/parser.c:204–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204int
205parser_read_uint8(uint8_t *value, const char *p)
206{
207 uint64_t val = 0;
208 int ret = parser_read_uint64(&val, p);
209
210 if (ret < 0)
211 return ret;
212
213 if (val > UINT8_MAX)
214 return -ERANGE;
215
216 *value = val;
217 return 0;
218}
219
220int
221parser_read_uint8_hex(uint8_t *value, const char *p)

Callers 3

cmd_tmgr_pipe_profileFunction · 0.70
parse_matchFunction · 0.70
parse_table_action_encapFunction · 0.70

Calls 1

parser_read_uint64Function · 0.70

Tested by

no test coverage detected