Home
last modified time | relevance | path

Searched refs:appender (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/lib/utils/
Djson.c1217 struct appender { struct
1225 struct appender *appender = data; in append_bytes_to_buf() argument
1227 if (len >= appender->size - appender->used) { in append_bytes_to_buf()
1231 memcpy(appender->buffer + appender->used, bytes, len); in append_bytes_to_buf()
1232 appender->used += len; in append_bytes_to_buf()
1233 appender->buffer[appender->used] = '\0'; in append_bytes_to_buf()
1241 struct appender appender = { .buffer = buffer, .size = buf_size }; in json_obj_encode_buf() local
1244 &appender); in json_obj_encode_buf()
1250 struct appender appender = { .buffer = buffer, .size = buf_size }; in json_arr_encode_buf() local
1252 return json_arr_encode(descr, val, append_bytes_to_buf, &appender); in json_arr_encode_buf()