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

Function rte_tel_json_empty_obj

dpdk/lib/telemetry/telemetry_json.h:169–173  ·  view source on GitHub ↗

Copies an empty object into the provided buffer. */

Source from the content-addressed store, hash-verified

167
168/* Copies an empty object into the provided buffer. */
169static inline int
170rte_tel_json_empty_obj(char *buf, const int len, const int used)
171{
172 return used + __json_snprintf(buf + used, len - used, "{}");
173}
174
175/* Copies a string into the provided buffer, in JSON format. */
176static inline int

Callers 3

container_to_jsonFunction · 0.85
output_jsonFunction · 0.85
test_obj_char_escapingFunction · 0.85

Calls 1

__json_snprintfFunction · 0.85

Tested by 1

test_obj_char_escapingFunction · 0.68