Lines Matching defs:pos
63 : pos(std::begin(buf)), last(pos), knext(next_chunk), next(nullptr) {}
64 size_t len() const { return last - pos; }
66 void reset() { pos = last = std::begin(buf); }
68 uint8_t *pos, *last;
209 dest.append(m->pos, m->len());
231 first = std::copy_n(m->pos, n, first);
232 m->pos += n;
262 dest.append(m->pos, n);
263 m->pos += n;
311 m->pos += n;
333 m->pos += n;
339 assert(mark != m || m->pos <= mark_pos);
343 assert(m->pos <= mark_pos);
366 iov[i].iov_base = m->pos;
381 iov[0].iov_len = mark->len() - (mark_pos - mark->pos);
394 iov[i].iov_base = m->pos;
476 cur_pos = cur->pos;
505 cur_pos = cur->pos;
620 // Since we has chunk as a member variable, pos and last are
623 uint8_t *pos() const { return chunk->pos; }
641 chunk->pos += count;
646 std::copy(chunk->pos + count, chunk->last, std::begin(chunk->buf));
647 chunk->last = std::begin(chunk->buf) + (chunk->last - (chunk->pos + count));
648 chunk->pos = std::begin(chunk->buf);