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

Function rte_tel_json_str

dpdk/lib/telemetry/telemetry_json.h:176–180  ·  view source on GitHub ↗

Copies a string into the provided buffer, in JSON format. */

Source from the content-addressed store, hash-verified

174
175/* Copies a string into the provided buffer, in JSON format. */
176static inline int
177rte_tel_json_str(char *buf, const int len, const int used, const char *str)
178{
179 return used + __json_format_str(buf + used, len - used, "\"", str, "\"");
180}
181
182/* Appends a string into the JSON array in the provided buffer. */
183static inline int

Callers 2

output_jsonFunction · 0.85

Calls 1

__json_format_strFunction · 0.85

Tested by 1