* rbuf_len - helper to determine how many bytes in rbuf * @rbuf: the struct rbuf */
| 98 | * @rbuf: the struct rbuf |
| 99 | */ |
| 100 | static 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 |
no outgoing calls