Home
last modified time | relevance | path

Searched refs:buffer_end_ (Results 1 – 4 of 4) sorted by relevance

/third_party/protobuf/src/google/protobuf/io/
Dcoded_stream.cc99 buffer_end_ = buffer_; in BackUpInputToCurrentPosition()
106 buffer_end_ += buffer_size_after_limit_; in RecomputeBufferLimits()
112 buffer_end_ -= buffer_size_after_limit_; in RecomputeBufferLimits()
211 buffer_end_ = buffer_; in SkipFallback()
461 (buffer_end_ > buffer_ && !(buffer_end_[-1] & 0x80))) { in ReadVarint32Fallback()
491 (buffer_end_ > buffer_ && !(buffer_end_[-1] & 0x80))) { in ReadVarintSizeAsIntFallback()
506 if (buffer_ == buffer_end_) { in ReadTagSlow()
536 (buf_size > 0 && !(buffer_end_[-1] & 0x80))) { in ReadTagFallback()
581 while (buffer_ == buffer_end_) { in ReadVarint64Slow()
601 (buffer_end_ > buffer_ && !(buffer_end_[-1] & 0x80))) { in ReadVarint64Fallback()
[all …]
Dcoded_stream.h539 const uint8* buffer_end_; // pointer to the end of the buffer. variable
670 buffer_end_(nullptr), in EpsCopyOutputStream()
827 uint8* buffer_end_ = buffer_; variable
949 buffer_end_ = nullptr; in SetInitialBuffer()
953 buffer_end_ = ptr; in SetInitialBuffer()
1272 if (PROTOBUF_PREDICT_TRUE(buffer_ < buffer_end_)) { in ReadVarint32()
1286 if (PROTOBUF_PREDICT_TRUE(buffer_ < buffer_end_) && *buffer_ < 0x80) { in ReadVarint64()
1297 if (PROTOBUF_PREDICT_TRUE(buffer_ < buffer_end_)) { in ReadVarintSizeAsInt()
1371 if (PROTOBUF_PREDICT_TRUE(buffer_ < buffer_end_)) { in ReadTagNoLastTag()
1388 if (PROTOBUF_PREDICT_TRUE(buffer_ < buffer_end_)) { in ReadTagWithCutoffNoLastTag()
[all …]
/third_party/protobuf/src/google/protobuf/
Dparse_context.cc107 buffer_end_ = next_chunk_ + size_ - kSlopBytes; in Next()
116 std::memmove(buffer_, buffer_end_, kSlopBytes); in Next()
127 buffer_end_ = buffer_ + kSlopBytes; in Next()
133 buffer_end_ = buffer_ + size_; in Next()
148 aliasing_ = reinterpret_cast<std::uintptr_t>(buffer_end_) - in Next()
152 buffer_end_ = buffer_ + kSlopBytes; in Next()
160 int overrun = ptr - buffer_end_; in DoneFallback()
170 GOOGLE_DCHECK(limit_end_ == buffer_end_ + (std::min)(0, limit_)); in DoneFallback()
173 GOOGLE_DCHECK(limit_end_ == buffer_end_); // because limit_ > 0 in DoneFallback()
182 limit_end_ = buffer_end_; in DoneFallback()
[all …]
Dparse_context.h116 GOOGLE_DCHECK(ptr <= buffer_end_ + kSlopBytes); in BackUp()
119 count = static_cast<int>(buffer_end_ + kSlopBytes - ptr); in BackUp()
121 count = size_ + static_cast<int>(buffer_end_ - ptr); in BackUp()
131 limit += static_cast<int>(ptr - buffer_end_); in PushLimit()
132 limit_end_ = buffer_end_ + (std::min)(0, limit); in PushLimit()
143 limit_end_ = buffer_end_ + (std::min)(0, limit_); in PopLimit()
148 if (size <= buffer_end_ + kSlopBytes - ptr) { in Skip()
155 if (size <= buffer_end_ + kSlopBytes - ptr) { in ReadString()
163 if (size <= buffer_end_ + kSlopBytes - ptr) { in AppendString()
195 (next_chunk_ == nullptr || ptr - buffer_end_ > limit_); in IsExceedingLimit()
[all …]