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

Function ld_read_json

plugins/libplugin.c:1562–1578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1560}
1561
1562static struct io_plan *ld_read_json(struct io_conn *conn,
1563 struct plugin *plugin)
1564{
1565 plugin->used += plugin->len_read;
1566 if (plugin->used && plugin->used == tal_count(plugin->buffer))
1567 tal_resize(&plugin->buffer, plugin->used * 2);
1568
1569 /* Read and process all messages from the connection */
1570 while (ld_read_json_one(plugin))
1571 ;
1572
1573 /* Now read more from the connection */
1574 return io_read_partial(plugin->stdin_conn,
1575 plugin->buffer + plugin->used,
1576 tal_count(plugin->buffer) - plugin->used,
1577 &plugin->len_read, ld_read_json, plugin);
1578}
1579
1580static struct io_plan *ld_write_json(struct io_conn *conn,
1581 struct plugin *plugin);

Callers

nothing calls this directly

Calls 1

ld_read_json_oneFunction · 0.85

Tested by

no test coverage detected