Lines Matching refs:bufv
22 size_t fuse_buf_size(const struct fuse_bufvec *bufv)
27 for (i = 0; i < bufv->count; i++) {
28 if (bufv->buf[i].size == SIZE_MAX)
31 size += bufv->buf[i].size;
257 static const struct fuse_buf *fuse_bufvec_current(struct fuse_bufvec *bufv)
259 if (bufv->idx < bufv->count)
260 return &bufv->buf[bufv->idx];
265 static int fuse_bufvec_advance(struct fuse_bufvec *bufv, size_t len)
267 const struct fuse_buf *buf = fuse_bufvec_current(bufv);
272 bufv->off += len;
273 assert(bufv->off <= buf->size);
274 if (bufv->off == buf->size) {
275 assert(bufv->idx < bufv->count);
276 bufv->idx++;
277 if (bufv->idx == bufv->count)
279 bufv->off = 0;