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

Function rbuf_fill

ccan/ccan/rbuf/rbuf.c:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void *rbuf_fill(struct rbuf *rbuf)
63{
64 if (!rbuf_len(rbuf)) {
65 if (get_more(rbuf) < 0)
66 return NULL;
67 }
68 return rbuf_start(rbuf);
69}
70
71char *rbuf_read_str(struct rbuf *rbuf, char term)
72{

Callers 1

mainFunction · 0.85

Calls 3

rbuf_lenFunction · 0.85
get_moreFunction · 0.85
rbuf_startFunction · 0.85

Tested by 1

mainFunction · 0.68