Home
last modified time | relevance | path

Searched refs:remaining_ (Results 1 – 22 of 22) sorted by relevance

/external/cronet/base/containers/
Dbuffer_iterator.h69 : buffer_(buffer), remaining_(buffer) {} in BufferIterator()
79 if (size > remaining_.size()) in MutableObject()
81 T* t = reinterpret_cast<T*>(remaining_.data()); in MutableObject()
82 remaining_ = remaining_.subspan(size); in MutableObject()
100 if (remaining_.size() >= sizeof(T)) { in CopyObject()
101 memcpy(&t.emplace(), remaining_.data(), sizeof(T)); in CopyObject()
102 remaining_ = remaining_.subspan(sizeof(T)); in CopyObject()
117 if (size > remaining_.size()) in MutableSpan()
119 auto result = span<T>(reinterpret_cast<T*>(remaining_.data()), count); in MutableSpan()
120 remaining_ = remaining_.subspan(size); in MutableSpan()
[all …]
/external/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader.h105 size_t remaining() const { return remaining_; } in remaining()
158 size_t remaining_ = 0;
170 remaining_ = tree->length - edge->length; in Init()
175 if (remaining_ == 0) return {}; in Next()
178 remaining_ -= edge->length; in Next()
188 remaining_ = 0; in Skip()
193 remaining_ -= skip - pos.offset + pos.edge->length; in Skip()
200 remaining_ = 0; in Seek()
204 remaining_ = length() - offset - chunk.length(); in Seek()
Dcord_rep_btree_reader.cc56 if (consumed_by_read >= remaining_) { in Read()
57 remaining_ = 0; in Read()
63 remaining_ -= consumed_by_read + edge->length; in Read()
/external/tensorflow/third_party/absl/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader.h105 size_t remaining() const { return remaining_; } in remaining()
158 size_t remaining_ = 0;
170 remaining_ = tree->length - edge->length; in Init()
175 if (remaining_ == 0) return {}; in Next()
178 remaining_ -= edge->length; in Next()
188 remaining_ = 0; in Skip()
193 remaining_ -= skip - pos.offset + pos.edge->length; in Skip()
200 remaining_ = 0; in Seek()
204 remaining_ = length() - offset - chunk.length(); in Seek()
Dcord_rep_btree_reader.cc56 if (consumed_by_read >= remaining_) { in Read()
57 remaining_ = 0; in Read()
63 remaining_ -= consumed_by_read + edge->length; in Read()
/external/webrtc/third_party/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader.h105 size_t remaining() const { return remaining_; } in remaining()
158 size_t remaining_ = 0;
170 remaining_ = tree->length - edge->length; in Init()
175 if (remaining_ == 0) return {}; in Next()
178 remaining_ -= edge->length; in Next()
188 remaining_ = 0; in Skip()
193 remaining_ -= skip - pos.offset + pos.edge->length; in Skip()
200 remaining_ = 0; in Seek()
204 remaining_ = length() - offset - chunk.length(); in Seek()
Dcord_rep_btree_reader.cc56 if (consumed_by_read >= remaining_) { in Read()
57 remaining_ = 0; in Read()
63 remaining_ -= consumed_by_read + edge->length; in Read()
/external/cronet/third_party/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader.h105 size_t remaining() const { return remaining_; } in remaining()
158 size_t remaining_ = 0;
170 remaining_ = tree->length - edge->length; in Init()
175 if (remaining_ == 0) return {}; in Next()
178 remaining_ -= edge->length; in Next()
188 remaining_ = 0; in Skip()
193 remaining_ -= skip - pos.offset + pos.edge->length; in Skip()
200 remaining_ = 0; in Seek()
204 remaining_ = length() - offset - chunk.length(); in Seek()
Dcord_rep_btree_reader.cc56 if (consumed_by_read >= remaining_) { in Read()
57 remaining_ = 0; in Read()
63 remaining_ -= consumed_by_read + edge->length; in Read()
/external/angle/third_party/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader.h105 size_t remaining() const { return remaining_; } in remaining()
158 size_t remaining_ = 0;
170 remaining_ = tree->length - edge->length; in Init()
175 if (remaining_ == 0) return {}; in Next()
178 remaining_ -= edge->length; in Next()
188 remaining_ = 0; in Skip()
193 remaining_ -= skip - pos.offset + pos.edge->length; in Skip()
200 remaining_ = 0; in Seek()
204 remaining_ = length() - offset - chunk.length(); in Seek()
Dcord_rep_btree_reader.cc56 if (consumed_by_read >= remaining_) { in Read()
57 remaining_ = 0; in Read()
63 remaining_ -= consumed_by_read + edge->length; in Read()
/external/libtextclassifier/native/utils/base/
Darena.cc120 : remaining_(0), in BaseArena()
195 if (waste >= remaining_) { in SatisfyAlignment()
199 remaining_ -= waste; in SatisfyAlignment()
213 remaining_ = first_blocks_[0].size; in Reset()
216 ASAN_POISON_MEMORY_REGION(freestart_, remaining_); in Reset()
238 remaining_ = block->size; in MakeNewBlock()
393 if (!SatisfyAlignment(alignment) || size > remaining_) { in AllocNewBlock()
396 TC3_CHECK_LE(size, remaining_); in AllocNewBlock()
398 remaining_ -= size; in AllocNewBlock()
455 assert(remaining_ >= 0); // should be: it's a size_t! in AllocNewBlock()
[all …]
Darena.h115 assert(remaining_ <= block_size_); // an invariant in GetMemory()
116 if (size > 0 && size <= remaining_ && align == 1) { // common case in GetMemory()
119 remaining_ -= size; in GetMemory()
132 remaining_ += size; in ReturnMemory()
145 size_t remaining_; variable
276 size_t bytes_until_next_allocation() const { return remaining_; } in bytes_until_next_allocation()
/external/cronet/net/third_party/quiche/src/quiche/http2/hpack/decoder/
Dhpack_string_decoder.h66 remaining_ = length; in Start()
103 << db->Remaining() << " remaining_=" << remaining_; in Resume()
170 remaining_ = static_cast<size_t>(length_decoder_.value()); in OnStringStart()
172 cb->OnStringStart(huffman_encoded_, remaining_); in OnStringStart()
180 size_t len = std::min(remaining_, db->Remaining()); in DecodeString()
184 remaining_ -= len; in DecodeString()
186 if (remaining_ == 0) { in DecodeString()
198 size_t remaining_ = 0; variable
Dhpack_string_decoder.cc14 ", remaining=", remaining_, in DebugString()
/external/tensorflow/tensorflow/core/lib/core/
Darena.cc46 : remaining_(0), in Arena()
76 if (waste >= remaining_) { in SatisfyAlignment()
80 remaining_ -= waste; in SatisfyAlignment()
94 remaining_ = first_blocks_[0].size; in Reset()
113 remaining_ = block->size; in MakeNewBlock()
210 if (!SatisfyAlignment(alignment) || size > remaining_) { in GetMemoryFallback()
213 CHECK_LE(size, remaining_); in GetMemoryFallback()
215 remaining_ -= size; in GetMemoryFallback()
Darena.h68 assert(remaining_ <= block_size_); // an invariant in GetMemory()
69 if (size > 0 && size < remaining_ && align == 1) { // common case in GetMemory()
72 remaining_ -= size; in GetMemory()
78 size_t remaining_; variable
/external/cronet/net/third_party/quiche/src/quiche/http2/adapter/
Dnghttp2_test_utils.h23 const size_t to_send = std::min(size, remaining_.size()); in ReadNext()
24 auto ret = remaining_.substr(0, to_send); in ReadNext()
25 remaining_.remove_prefix(to_send); in ReadNext()
30 return std::min(max_length, remaining_.size()); in SelectPayloadLength()
59 absl::string_view remaining_ = data_; variable
Dtest_utils.cc93 remaining_ = encoded_entries_; in TestMetadataSource()
98 const size_t copied = std::min(dest_len, remaining_.size()); in Pack()
99 std::memcpy(dest, remaining_.data(), copied); in Pack()
100 remaining_.remove_prefix(copied); in Pack()
101 return std::make_pair(copied, remaining_.empty()); in Pack()
Dtest_utils.h117 absl::string_view remaining_; variable
/external/pigweed/pw_kvs/
Dfake_flash_memory.cc49 if (remaining_ == 0u) { in Check()
53 if (remaining_ != kAlways) { in Check()
54 remaining_ -= 1; in Check()
/external/pigweed/pw_kvs/public/pw_kvs/
Dfake_flash_memory.h67 remaining_(times) {} in FlashError()
75 size_t remaining_; variable