Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Drepeated_field.cc47 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 …]
Drepeated_field.h141 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 …]
Dmap.h1113 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/
Dmessage.c97 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()
Dupb.c5928 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/
DHashBase.tcc189 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/
Dstl_util.h67 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/
Dencode_decode.c829 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()
Drepeated_field.c187 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()
Dprotobuf.h371 void RepeatedField_reserve(RepeatedField* self, int new_size);
Dupb.c9194 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 …]