Home
last modified time | relevance | path

Searched refs:cur_range_ (Results 1 – 2 of 2) sorted by relevance

/external/perfetto/src/protozero/
Dscattered_stream_writer.cc29 cur_range_({nullptr, nullptr}), in ScatteredStreamWriter()
35 written_previously_ += static_cast<uint64_t>(write_ptr_ - cur_range_.begin); in Reset()
36 cur_range_ = range; in Reset()
38 PERFETTO_DCHECK(!write_ptr_ || write_ptr_ < cur_range_.end); in Reset()
49 if (write_ptr_ >= cur_range_.end) in WriteBytesSlowPath()
61 if (write_ptr_ + size > cur_range_.end) { in ReserveBytes()
65 PERFETTO_DCHECK(write_ptr_ + size <= cur_range_.end); in ReserveBytes()
/external/perfetto/include/perfetto/protozero/
Dscattered_stream_writer.h56 if (write_ptr_ >= cur_range_.end) in WriteByte()
68 assert(end <= cur_range_.end); in WriteBytesUnsafe()
75 if (PERFETTO_LIKELY(end <= cur_range_.end)) in WriteBytes()
93 assert(write_ptr_ <= cur_range_.end); in ReserveBytesUnsafe()
104 return static_cast<size_t>(cur_range_.end - write_ptr_); in bytes_available()
111 static_cast<uint64_t>(write_ptr_ - cur_range_.begin); in written()
121 ContiguousMemoryRange cur_range_; variable