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

Function rbuf_consume

ccan/ccan/rbuf/rbuf.h:91–94  ·  view source on GitHub ↗

* rbuf_consume - helper to use up data in a buffer. * @rbuf: the struct rbuf * @len: the length (from @buf->start) you used. * * After rbuf_fill() you should indicate the data you've used with * rbuf_consume(). That way rbuf_fill() will know if it has anything * to do. */

Source from the content-addressed store, hash-verified

89 * to do.
90 */
91static inline void rbuf_consume(struct rbuf *rbuf, size_t len)
92{
93 membuf_consume(&rbuf->m, len);
94}
95
96/**
97 * rbuf_len - helper to determine how many bytes in rbuf

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68