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

Function rbuf_len

ccan/ccan/rbuf/rbuf.h:100–103  ·  view source on GitHub ↗

* rbuf_len - helper to determine how many bytes in rbuf * @rbuf: the struct rbuf */

Source from the content-addressed store, hash-verified

98 * @rbuf: the struct rbuf
99 */
100static inline size_t rbuf_len(const struct rbuf *rbuf)
101{
102 return membuf_num_elems(&rbuf->m);
103}
104
105/**
106 * rbuf_start - helper to get pointert to unconsumed bytes in rbuf

Callers 3

rbuf_fillFunction · 0.85
rbuf_read_strFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68