* 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. */
| 89 | * to do. |
| 90 | */ |
| 91 | static 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 |