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

Function json_stream_append

common/json_stream.c:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void json_stream_append(struct json_stream *js,
82 const char *str, size_t len)
83{
84 char *dest;
85
86 dest = json_out_direct(js->jout, len);
87 memcpy(dest, str, len);
88}
89
90/* We promise it will end in '\n\n' */
91void json_stream_double_cr(struct json_stream *js)

Callers 5

plugin_notify_cbFunction · 0.85
jsonrpc_notification_endFunction · 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