Home
last modified time | relevance | path

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

/external/perfetto/src/tracing/core/
Dsliced_protobuf_input_stream.cc36 reinterpret_cast<uintptr_t>(cur_slice_->start) + pos_in_cur_slice_); in Next()
37 *size = static_cast<int>(cur_slice_->size - pos_in_cur_slice_); in Next()
39 pos_in_cur_slice_ = 0; in Next()
49 if (cur_slice_ == slices_->end() || pos_in_cur_slice_ == 0) { in BackUp()
57 pos_in_cur_slice_ = cur_slice_->size; in BackUp()
61 const size_t decrement = std::min(n, pos_in_cur_slice_); in BackUp()
62 pos_in_cur_slice_ -= decrement; in BackUp()
76 const size_t increment = std::min(n, cur_slice_->size - pos_in_cur_slice_); in Skip()
77 pos_in_cur_slice_ += increment; in Skip()
80 if (pos_in_cur_slice_ >= cur_slice_->size) { in Skip()
[all …]
Dsliced_protobuf_input_stream.h48 size_t pos_in_cur_slice_ = 0; variable