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

Function add_newly_read

common/jsonrpc_io.c:40–46  ·  view source on GitHub ↗

Empty new bytes read into our unparsed buffer */

Source from the content-addressed store, hash-verified

38
39/* Empty new bytes read into our unparsed buffer */
40static void add_newly_read(struct jsonrpc_io *json_in)
41{
42 /* Now added it to our unparsed buffer */
43 assert(json_in->bytes_read <= membuf_num_space(&json_in->membuf));
44 membuf_added(&json_in->membuf, json_in->bytes_read);
45 json_in->bytes_read = 0;
46}
47
48const char *jsonrpc_newly_read(struct jsonrpc_io *json_in,
49 size_t *len)

Callers 2

jsonrpc_newly_readFunction · 0.85
jsonrpc_io_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected