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

Function json_add_jsonstr

common/json_stream.c:200–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void json_add_jsonstr(struct json_stream *js,
201 const char *fieldname,
202 const char *jsonstr,
203 size_t jsonstrlen)
204{
205 char *p;
206
207 p = json_member_direct(js, fieldname, jsonstrlen);
208 memcpy(p, jsonstr, jsonstrlen);
209}
210
211/* This is where we read the json_stream and write it to conn */
212static struct io_plan *json_stream_output_write(struct io_conn *conn,

Callers 10

json_notify_fmtFunction · 0.85
json_startFunction · 0.85
rpc_command_hook_finalFunction · 0.85
try_commandFunction · 0.85
handle_replyFunction · 0.85
perform_fundpsbtFunction · 0.85
openchannel_finishedFunction · 0.85
start_mwFunction · 0.85

Calls 1

json_member_directFunction · 0.85

Tested by

no test coverage detected