Searched refs:appender (Results 1 – 1 of 1) sorted by relevance
1217 struct appender { struct1225 struct appender *appender = data; in append_bytes_to_buf() argument1227 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() local1244 &appender); in json_obj_encode_buf()1250 struct appender appender = { .buffer = buffer, .size = buf_size }; in json_arr_encode_buf() local1252 return json_arr_encode(descr, val, append_bytes_to_buf, &appender); in json_arr_encode_buf()