Lines Matching refs:start_
42 char *Frame() const { return buffer_ + start_ + frame_; } in Frame()
44 return std::min<std::size_t>(length_ - frame_, size_ - (start_ + frame_)); in FrameLength()
46 std::size_t BytesBufferedBeforeFrame() const { return frame_ - start_; } in BytesBufferedBeforeFrame()
57 if (static_cast<std::int64_t>(start_ + frame_ + bytes) > size_) { in ReadFrame()
59 if (static_cast<std::int64_t>(start_ + bytes) > size_) { in ReadFrame()
63 if (start_ + length_ <= size_) { in ReadFrame()
65 std::memmove(buffer_, buffer_ + start_, length_); in ReadFrame()
68 auto n{start_ + length_ - size_}; // 3 for cde in ReadFrame()
70 std::memmove(buffer_ + n, buffer_ + start_, length_ - n); // cdeab in ReadFrame()
73 start_ = 0; in ReadFrame()
77 auto next{start_ + length_}; in ReadFrame()
94 start_ + (at - fileOffset_) + static_cast<std::int64_t>(bytes) > in WriteFrame()
108 std::size_t chunk{std::min<std::size_t>(length_, size_ - start_)}; in Flush()
110 Store().Write(fileOffset_, buffer_ + start_, chunk, handler)}; in Flush()
112 start_ += put; in Flush()
132 auto chunk{std::min<std::int64_t>(length_, oldSize - start_)}; in Reallocate()
133 std::memcpy(buffer_, old + start_, chunk); in Reallocate()
134 start_ = 0; in Reallocate()
141 start_ = length_ = frame_ = 0; in Reset()
150 start_ = 0; in DiscardLeadingBytes()
152 start_ += n; in DiscardLeadingBytes()
153 if (start_ >= size_) { in DiscardLeadingBytes()
154 start_ -= size_; in DiscardLeadingBytes()
170 std::int64_t start_{0}; // buffer_[] offset of valid data