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

Function adjust_io_write

common/json_stream.c:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <wire/peer_wire.h>
16
17static void adjust_io_write(struct json_out *jout,
18 ptrdiff_t delta,
19 struct json_stream *js)
20{
21 /* If io_write is in progress, we shift it to point to new buffer pos */
22 if (js->reader)
23 /* FIXME: This, or something prettier (io_replan?) belong in ccan/io! */
24 js->reader->plan[IO_OUT].arg.u1.cp += delta;
25}
26
27struct json_stream *new_json_stream(const tal_t *ctx,
28 struct command *writer,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected