Lines Matching defs:buf
37 Buffer() : pos(std::begin(buf)), last(pos) {}
41 size_t wleft() const { return std::end(buf) - last; }
63 std::copy(pos + count, last, std::begin(buf));
64 last = std::begin(buf) + (last - (pos + count));
65 pos = std::begin(buf);
68 void reset() { pos = last = std::begin(buf); }
69 uint8_t *begin() { return std::begin(buf); }
70 uint8_t &operator[](size_t n) { return buf[n]; }
71 const uint8_t &operator[](size_t n) const { return buf[n]; }
72 std::array<uint8_t, N> buf;