MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_stream_append

Function json_stream_append

common/json_stream.c:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void 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' */
98void json_stream_double_cr(struct json_stream *js)

Callers 5

plugin_notify_cbFunction · 0.85
jsonrpc_request_endFunction · 0.85
json_stream_double_crFunction · 0.85

Calls 1

json_out_directFunction · 0.85

Tested by

no test coverage detected