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

Function jsonrpc_io_parse_done

common/jsonrpc_io.c:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void jsonrpc_io_parse_done(struct jsonrpc_io *json_in)
107{
108 size_t bytes_parsed = json_in->toks[0].end;
109 membuf_consume(&json_in->membuf, bytes_parsed);
110
111 jsmn_init(&json_in->parser);
112 toks_reset(json_in->toks);
113}
114
115struct io_plan *jsonrpc_io_read_(struct io_conn *conn,
116 struct jsonrpc_io *json_in,

Callers 6

plugin_read_jsonFunction · 0.85
read_jsonFunction · 0.85
pump_nextFunction · 0.85
read_sync_rpc_replyFunction · 0.85
rpc_conn_read_responseFunction · 0.85
ld_read_jsonFunction · 0.85

Calls 1

toks_resetFunction · 0.85

Tested by 1

pump_nextFunction · 0.68