/third_party/protobuf/src/google/protobuf/stubs/ |
D | bytestream.cc | 69 : outbuf_(outbuf), capacity_(capacity), size_(0), overflowed_(false) { in CheckedArrayByteSink() 73 size_t available = capacity_ - size_; in Append() 80 GOOGLE_DCHECK(!(outbuf_ <= bytes && bytes < (outbuf_ + capacity_))) in Append() 88 : capacity_(estimated_size), in GrowingArrayByteSink() 98 size_t available = capacity_ - size_; in Append() 102 GOOGLE_DCHECK(!(buf_ <= bytes && bytes < (buf_ + capacity_))) in Append() 119 size_ = capacity_ = 0; in GetBuffer() 124 size_t new_capacity = std::max(capacity_ + amount, (3 * capacity_) / 2); in Expand() 129 capacity_ = new_capacity; in Expand() 135 if (capacity_ > 256 && size_ < (3 * capacity_) / 4) { in ShrinkToFit() [all …]
|
D | bytestream.h | 205 const size_t capacity_; variable 241 size_t capacity_; variable
|
/third_party/gn/src/base/containers/ |
D | vector_buffer.h | 48 capacity_(count) { in VectorBuffer() 51 : buffer_(other.buffer_), capacity_(other.capacity_) { in VectorBuffer() 53 other.capacity_ = 0; in VectorBuffer() 61 capacity_ = other.capacity_; 64 other.capacity_ = 0; 68 size_t capacity() const { return capacity_; } in capacity() 73 T* end() { return &buffer_[capacity_]; } in end() 154 size_t capacity_ = 0; variable
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | cord_rep_ring.h | 120 index_type capacity() const { return capacity_; } in capacity() 131 assert(head < capacity_ && tail < capacity_); in entries() 132 return tail - head + ((tail > head) ? 0 : capacity_); in entries() 334 index_type n1 = (tail > head) ? tail : capacity_; in ForEach() 363 explicit CordRepRing(index_type capacity) : capacity_(capacity) {} in CordRepRing() 480 index_type capacity_; variable 508 assert(index < capacity_); in advance() 509 return ++index == capacity_ ? 0 : index; in advance() 514 assert(index < capacity_ && n <= capacity_); in advance() 515 return (index += n) >= capacity_ ? index - capacity_ : index; in advance() [all …]
|
D | cord_rep_ring.cc | 87 << ", cap = " << rep.capacity_ << ", rc = " << rep.refcount.Get() in operator <<() 135 if (capacity_ == 0) { in IsValid() 140 if (head_ >= capacity_ || tail_ >= capacity_) { in IsValid() 142 << capacity_; in IsValid() 213 rep->capacity_ = static_cast<index_type>(capacity); in New() 220 assert(capacity <= capacity_); in SetCapacityForTesting() 223 Layout::Partial(capacity_).Pointer<1>(data_) + head(), in SetCapacityForTesting() 226 Layout::Partial(capacity_, capacity_).Pointer<2>(data_) + head(), in SetCapacityForTesting() 228 capacity_ = static_cast<index_type>(capacity); in SetCapacityForTesting() 234 size_t size = AllocSize(rep->capacity_); in Delete() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
D | raw_hash_set.h | 867 capacity_ = NormalizeCapacity(bucket_count); 974 auto target = find_first_non_full(ctrl_, hash, capacity_); 975 SetCtrl(target.offset, H2(hash), capacity_, ctrl_, slots_, 991 capacity_(absl::exchange(that.capacity_, 0)), 1003 capacity_(0), 1010 std::swap(capacity_, that.capacity_); 1059 size_t capacity() const { return capacity_; } 1070 if (capacity_ > 127) { 1072 } else if (capacity_) { 1073 for (size_t i = 0; i != capacity_; ++i) { [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | collationkeys.h | 35 : buffer_(dest), capacity_(destCapacity), in SortKeyByteSink() 46 if (appended_ < capacity_ || Resize(1, appended_)) { in Append() 64 return ignore_ + capacity_ - appended_; in GetRemainingCapacity() 67 UBool Overflowed() const { return appended_ > capacity_; } in Overflowed() 77 capacity_ = 0; in SetNotOk() 81 int32_t capacity_; variable
|
D | collationkeys.cpp | 50 int32_t available = capacity_ - length; in Append() 73 int32_t available = capacity_ - appended_; in GetAppendBuffer() 78 *result_capacity = capacity_ - appended_; in GetAppendBuffer()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | collationkeys.h | 35 : buffer_(dest), capacity_(destCapacity), in SortKeyByteSink() 46 if (appended_ < capacity_ || Resize(1, appended_)) { in Append() 64 return ignore_ + capacity_ - appended_; in GetRemainingCapacity() 67 UBool Overflowed() const { return appended_ > capacity_; } in Overflowed() 77 capacity_ = 0; in SetNotOk() 81 int32_t capacity_; variable
|
D | collationkeys.cpp | 50 int32_t available = capacity_ - length; in Append() 73 int32_t available = capacity_ - appended_; in GetAppendBuffer() 78 *result_capacity = capacity_ - appended_; in GetAppendBuffer()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | collationkeys.h | 35 : buffer_(dest), capacity_(destCapacity), in SortKeyByteSink() 46 if (appended_ < capacity_ || Resize(1, appended_)) { in Append() 64 return ignore_ + capacity_ - appended_; in GetRemainingCapacity() 67 UBool Overflowed() const { return appended_ > capacity_; } in Overflowed() 77 capacity_ = 0; in SetNotOk() 81 int32_t capacity_; variable
|
D | collationkeys.cpp | 50 int32_t available = capacity_ - length; in Append() 73 int32_t available = capacity_ - appended_; in GetAppendBuffer() 78 *result_capacity = capacity_ - appended_; in GetAppendBuffer()
|
/third_party/icu/icu4c/source/i18n/ |
D | collationkeys.h | 35 : buffer_(dest), capacity_(destCapacity), in SortKeyByteSink() 46 if (appended_ < capacity_ || Resize(1, appended_)) { in Append() 64 return ignore_ + capacity_ - appended_; in GetRemainingCapacity() 67 UBool Overflowed() const { return appended_ > capacity_; } in Overflowed() 77 capacity_ = 0; in SetNotOk() 81 int32_t capacity_; variable
|
D | collationkeys.cpp | 50 int32_t available = capacity_ - length; in Append() 73 int32_t available = capacity_ - appended_; in GetAppendBuffer() 78 *result_capacity = capacity_ - appended_; in GetAppendBuffer()
|
/third_party/openh264/test/utils/ |
D | BufferedData.h | 12 BufferedData() : data_ (NULL), capacity_ (0), length_ (0) {} in BufferedData() 71 if (capacity > capacity_) { in EnsureCapacity() 80 capacity_ = newsize; in EnsureCapacity() 87 size_t capacity_; variable
|
/third_party/libphonenumber/cpp/src/phonenumbers/utf/ |
D | unicodetext.cc | 111 if (capacity_ >= new_capacity && ours_) return; in reserve() 114 capacity_ = max(new_capacity, (3 * capacity_) / 2 + 20); in reserve() 115 char* new_data = new char[capacity_]; in reserve() 131 if (!ours_ || new_size > capacity_) reserve(new_size); in resize() 144 size_ = capacity_ = 0; in clear() 158 capacity_ = capacity; in TakeOwnershipOf() 166 capacity_ = size; in PointTo() 180 << size_ << " capacity=" << capacity_ << " " in DebugString()
|
D | unicodetext.h | 287 int utf8_capacity() const { return repr_.capacity_; } in utf8_capacity() 336 int capacity_; variable 340 Repr() : data_(NULL), size_(0), capacity_(0), ours_(true), utf8_was_valid_(true) {} in Repr()
|
/third_party/node/deps/icu-small/source/common/ |
D | bytestream.cpp | 32 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity), in CheckedArrayByteSink() 55 int32_t available = capacity_ - size_; in Append() 75 int32_t available = capacity_ - size_; in GetAppendBuffer()
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | bytestream.cpp | 32 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity), in CheckedArrayByteSink() 55 int32_t available = capacity_ - size_; in Append() 75 int32_t available = capacity_ - size_; in GetAppendBuffer()
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | bytestream.cpp | 32 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity), in CheckedArrayByteSink() 55 int32_t available = capacity_ - size_; in Append() 75 int32_t available = capacity_ - size_; in GetAppendBuffer()
|
/third_party/icu/icu4c/source/common/ |
D | bytestream.cpp | 32 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity), in CheckedArrayByteSink() 55 int32_t available = capacity_ - size_; in Append() 75 int32_t available = capacity_ - size_; in GetAppendBuffer()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/ |
D | graphcycles.cc | 95 if (size_ == capacity_) Grow(size_ + 1); in push_back() 101 if (n > capacity_) Grow(n); in resize() 123 capacity_ = src->capacity_; in MoveFrom() 132 uint32_t capacity_; member in absl::synchronization_internal::__anon4e13f0cc0111::Vec 137 capacity_ = kInline; in Init() 145 while (capacity_ < n) { in Grow() 146 capacity_ *= 2; in Grow() 148 size_t request = static_cast<size_t>(capacity_) * sizeof(T); in Grow()
|
/third_party/node/src/ |
D | util.h | 373 return capacity_; in capacity() 386 capacity_ = storage; in AllocateSufficientStorage() 415 capacity_ = 0; in Invalidate() 436 capacity_ = arraysize(buf_st_); in Release() 440 : length_(0), capacity_(arraysize(buf_st_)), buf_(buf_st_) { in MaybeStackBuffer() 457 size_t capacity_; variable
|
/third_party/flutter/skia/third_party/externals/icu/source/common/unicode/ |
D | bytestream.h | 216 const int32_t capacity_; variable
|
/third_party/node/deps/icu-small/source/common/unicode/ |
D | bytestream.h | 251 const int32_t capacity_; variable
|