/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | repeated_field.cc | 47 int new_size = current_size_ + extend_amount; in InternalExtend() local 48 if (total_size_ >= new_size) { in InternalExtend() 55 new_size = std::max(kMinRepeatedFieldAllocationSize, in InternalExtend() 56 std::max(total_size_ * 2, new_size)); in InternalExtend() 57 GOOGLE_CHECK_LE(new_size, in InternalExtend() 63 new char[kRepHeaderSize + sizeof(old_rep->elements[0]) * new_size]); in InternalExtend() 67 kRepHeaderSize + sizeof(old_rep->elements[0]) * new_size)); in InternalExtend() 69 total_size_ = new_size; in InternalExtend() 83 void RepeatedPtrFieldBase::Reserve(int new_size) { in Reserve() argument 84 if (new_size > current_size_) { in Reserve() [all …]
|
D | repeated_field.h | 141 void Reserve(int new_size); 144 void Truncate(int new_size); 153 void Resize(int new_size, const Element& value); 423 void Reserve(int new_size); 761 void Reserve(int new_size); 1065 inline void RepeatedField<Element>::Resize(int new_size, const Element& value) { 1066 GOOGLE_DCHECK_GE(new_size, 0); 1067 if (new_size > current_size_) { 1068 Reserve(new_size); 1070 &rep_->elements[new_size], value); [all …]
|
D | map.h | 1113 bool ResizeIfLoadIsOutOfRange(size_type new_size) { in ResizeIfLoadIsOutOfRange() argument 1120 if (GOOGLE_PREDICT_FALSE(new_size >= hi_cutoff)) { in ResizeIfLoadIsOutOfRange() 1125 } else if (GOOGLE_PREDICT_FALSE(new_size <= lo_cutoff && in ResizeIfLoadIsOutOfRange() 1131 const size_type hypothetical_size = new_size * 5 / 4 + 1; in ResizeIfLoadIsOutOfRange()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/php/ext/google/protobuf/ |
D | message.c | 97 size_t new_size = sink->size; in stringsink_string() local 102 while (sink->len + len > new_size) { in stringsink_string() 103 new_size *= 2; in stringsink_string() 106 if (new_size != sink->size) { in stringsink_string() 107 sink->ptr = realloc(sink->ptr, new_size); in stringsink_string() 108 sink->size = new_size; in stringsink_string()
|
D | upb.c | 5928 size_t new_size = UPB_MAX(l->size, 4); in upb_deflist_push() local 5929 new_size *= 2; in upb_deflist_push() 5930 l->defs = realloc(l->defs, new_size * sizeof(void *)); in upb_deflist_push() 5932 l->size = new_size; in upb_deflist_push() 8482 size_t new_size = stacksize(d, max); in upb_pbdecoder_setmaxnesting() local 8483 void *p = upb_env_realloc(d->env, d->stack, old_size, new_size); in upb_pbdecoder_setmaxnesting() 8490 new_size = callstacksize(d, max); in upb_pbdecoder_setmaxnesting() 8491 p = upb_env_realloc(d->env, d->callstack, old_size, new_size); in upb_pbdecoder_setmaxnesting() 8648 size_t new_size = old_size; in reserve() local 8650 while (new_size < needed) { in reserve() [all …]
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
D | HashBase.tcc | 189 unsigned int new_size; in mayRehash() local 194 new_size = compute_bucket_count(m_NumOfBuckets); in mayRehash() 197 new_size = m_NumOfBuckets; in mayRehash() 201 doRehash(new_size); in mayRehash()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | stl_util.h | 67 inline void STLStringResizeUninitialized(string* s, size_t new_size) { in STLStringResizeUninitialized() argument 68 s->resize(new_size); in STLStringResizeUninitialized()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/ext/google/protobuf_c/ |
D | encode_decode.c | 829 size_t new_size = sink->size; in stringsink_string() local 834 while (sink->len + len > new_size) { in stringsink_string() 835 new_size *= 2; in stringsink_string() 838 if (new_size != sink->size) { in stringsink_string() 839 sink->ptr = realloc(sink->ptr, new_size); in stringsink_string() 840 sink->size = new_size; in stringsink_string()
|
D | repeated_field.c | 187 void RepeatedField_reserve(RepeatedField* self, int new_size) { in RepeatedField_reserve() argument 190 if (new_size <= self->capacity) { in RepeatedField_reserve() 196 while (self->capacity < new_size) { in RepeatedField_reserve()
|
D | protobuf.h | 371 void RepeatedField_reserve(RepeatedField* self, int new_size);
|
D | upb.c | 9194 size_t new_size = stacksize(d, max); in upb_pbdecoder_setmaxnesting() local 9195 void *p = upb_env_realloc(d->env, d->stack, old_size, new_size); in upb_pbdecoder_setmaxnesting() 9202 new_size = callstacksize(d, max); in upb_pbdecoder_setmaxnesting() 9203 p = upb_env_realloc(d->env, d->callstack, old_size, new_size); in upb_pbdecoder_setmaxnesting() 9359 size_t new_size = old_size; in reserve() local 9361 while (new_size < needed) { in reserve() 9362 new_size *= 2; in reserve() 9365 new_buf = upb_env_realloc(e->env, e->buf, old_size, new_size); in reserve() 9373 e->limit = new_buf + new_size; in reserve() 9443 size_t new_size = old_size * 2; in start_delim() local [all …]
|