Lines Matching refs:size_
61 return std::min<std::size_t>(length_ - frame_, size_ - (start_ + frame_)); in FrameLength()
77 if (static_cast<std::int64_t>(start_ + frame_ + bytes) > size_) { in ReadFrame()
84 RUNTIME_CHECK(handler, next < size_); in ReadFrame()
86 auto maxBytes{size_ - next}; in ReadFrame()
90 RUNTIME_CHECK(handler, length_ <= size_); 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_)};
144 if (bytes > size_) { in Reallocate()
146 auto oldSize{size_}; in Reallocate()
147 size_ = std::max<std::int64_t>(bytes, size_ + minBuffer); in Reallocate()
149 reinterpret_cast<char *>(AllocateMemoryOrCrash(terminator, size_)); in Reallocate()
171 if (start_ >= size_) { in DiscardLeadingBytes()
172 start_ -= size_; in DiscardLeadingBytes()
184 if (static_cast<std::int64_t>(start_ + bytes) > size_) { in MakeDataContiguous()
187 RUNTIME_CHECK(handler, length_ < size_); in MakeDataContiguous()
188 if (start_ + length_ <= size_) { in MakeDataContiguous()
193 auto n{start_ + length_ - size_}; // 3 for cde in MakeDataContiguous()
203 std::int64_t size_{0}; // current allocated buffer size