| 84 | } |
| 85 | |
| 86 | void json_stream_append(struct json_stream *js, |
| 87 | const char *str, size_t len) |
| 88 | { |
| 89 | char *dest; |
| 90 | |
| 91 | /* Only on low-level streams! */ |
| 92 | assert(!js->filter); |
| 93 | dest = json_out_direct(js->jout, len); |
| 94 | memcpy(dest, str, len); |
| 95 | } |
| 96 | |
| 97 | /* We promise it will end in '\n\n' */ |
| 98 | void json_stream_double_cr(struct json_stream *js) |
no test coverage detected