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

Function rte_tel_json_empty_array

dpdk/lib/telemetry/telemetry_json.h:162–166  ·  view source on GitHub ↗

Copies an empty array into the provided buffer. */

Source from the content-addressed store, hash-verified

160
161/* Copies an empty array into the provided buffer. */
162static inline int
163rte_tel_json_empty_array(char *buf, const int len, const int used)
164{
165 return used + __json_snprintf(buf + used, len - used, "[]");
166}
167
168/* Copies an empty object into the provided buffer. */
169static inline int

Callers 4

container_to_jsonFunction · 0.85
output_jsonFunction · 0.85
test_basic_arrayFunction · 0.85
test_array_char_escapingFunction · 0.85

Calls 1

__json_snprintfFunction · 0.85

Tested by 2

test_basic_arrayFunction · 0.68
test_array_char_escapingFunction · 0.68