Lines Matching refs:start_
59 char *Frame() const { return buffer_ + start_ + frame_; } in Frame()
61 return std::min<std::size_t>(length_ - frame_, size_ - (start_ + frame_)); in FrameLength()
63 std::size_t BytesBufferedBeforeFrame() const { return frame_ - start_; } in BytesBufferedBeforeFrame()
77 if (static_cast<std::int64_t>(start_ + frame_ + bytes) > size_) { in ReadFrame()
83 auto next{start_ + length_}; in ReadFrame()
101 } else if (start_ + newFrame + static_cast<std::int64_t>(bytes) > size_) { in WriteFrame()
117 std::min<std::size_t>(length_ - keep, size_ - start_)};
119 Store().Write(fileOffset_, buffer_ + start_, chunk, handler)};
150 auto chunk{std::min<std::int64_t>(length_, oldSize - start_)}; in Reallocate()
151 std::memcpy(buffer_, old + start_, chunk); in Reallocate()
152 start_ = 0; in Reallocate()
159 start_ = length_ = frame_ = 0; in Reset()
168 start_ = 0; in DiscardLeadingBytes()
170 start_ += n; in DiscardLeadingBytes()
171 if (start_ >= size_) { in DiscardLeadingBytes()
172 start_ -= size_; in DiscardLeadingBytes()
184 if (static_cast<std::int64_t>(start_ + bytes) > size_) { in MakeDataContiguous()
188 if (start_ + length_ <= size_) { in MakeDataContiguous()
190 std::memmove(buffer_, buffer_ + start_, length_); in MakeDataContiguous()
193 auto n{start_ + length_ - size_}; // 3 for cde in MakeDataContiguous()
195 std::memmove(buffer_ + n, buffer_ + start_, length_ - n); // cdeab in MakeDataContiguous()
198 start_ = 0; in MakeDataContiguous()
205 std::int64_t start_{0}; // buffer_[] offset of valid data