Home
last modified time | relevance | path

Searched refs:old_size (Results 1 – 9 of 9) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/io/
Dzero_copy_stream_impl_lite.cc161 int old_size = target_->size(); in Next() local
164 if (old_size < target_->capacity()) { in Next()
170 if (old_size > std::numeric_limits<int>::max() / 2) { in Next()
181 std::max(old_size * 2, in Next()
185 *data = mutable_string_data(target_) + old_size; in Next()
186 *size = target_->size() - old_size; in Next()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dmessage_lite.cc290 int old_size = output->size(); in AppendPartialToString() local
298 STLStringResizeUninitialized(output, old_size + byte_size); in AppendPartialToString()
300 reinterpret_cast<uint8*>(io::mutable_string_data(output) + old_size); in AppendPartialToString()
Ddescriptor.cc3433 string::size_type old_size = scope_to_try.size(); in LookupSymbolNoPlaceholder() local
3462 scope_to_try.erase(old_size); in LookupSymbolNoPlaceholder()
/frameworks/native/libs/vr/libpdx/private/pdx/
Dutility.h86 size_t old_size = size_; in grow_by() local
87 resize(old_size + size_delta); in grow_by()
88 return data_ + old_size; in grow_by()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Dstrutil.cc1570 string::size_type old_size = result->size(); in StrAppend() local
1571 result->resize(old_size + a.size() + b.size()); in StrAppend()
1573 char *out = Append2(begin + old_size, a, b); in StrAppend()
1582 string::size_type old_size = result->size(); in StrAppend() local
1583 result->resize(old_size + a.size() + b.size() + c.size()); in StrAppend()
1585 char *out = Append2(begin + old_size, a, b); in StrAppend()
1597 string::size_type old_size = result->size(); in StrAppend() local
1598 result->resize(old_size + a.size() + b.size() + c.size() + d.size()); in StrAppend()
1600 char *out = Append4(begin + old_size, a, b, c, d); in StrAppend()
/frameworks/native/vulkan/libvulkan/
Ddriver.cpp673 size_t old_size = ptr ? malloc_usable_size(ptr) : 0; in DefaultReallocate() local
674 if (size <= old_size) in DefaultReallocate()
681 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()
/frameworks/native/vulkan/nulldrv/
Dnull_driver.cpp219 size_t old_size = ptr ? malloc_usable_size(ptr) : 0; in DefaultReallocate() local
220 if (size <= old_size) in DefaultReallocate()
227 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/php/ext/google/protobuf/
Dupb.c8481 size_t old_size = stacksize(d, d->stack_size); in upb_pbdecoder_setmaxnesting() local
8483 void *p = upb_env_realloc(d->env, d->stack, old_size, new_size); in upb_pbdecoder_setmaxnesting()
8489 old_size = callstacksize(d, d->stack_size); in upb_pbdecoder_setmaxnesting()
8491 p = upb_env_realloc(d->env, d->callstack, old_size, new_size); in upb_pbdecoder_setmaxnesting()
8646 size_t old_size = e->limit - e->buf; in reserve() local
8648 size_t new_size = old_size; in reserve()
8654 new_buf = upb_env_realloc(e->env, e->buf, old_size, new_size); in reserve()
8730 size_t old_size = in start_delim() local
8732 size_t new_size = old_size * 2; in start_delim()
8734 upb_env_realloc(e->env, e->segbuf, old_size, new_size); in start_delim()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/ext/google/protobuf_c/
Dupb.c9193 size_t old_size = stacksize(d, d->stack_size); in upb_pbdecoder_setmaxnesting() local
9195 void *p = upb_env_realloc(d->env, d->stack, old_size, new_size); in upb_pbdecoder_setmaxnesting()
9201 old_size = callstacksize(d, d->stack_size); in upb_pbdecoder_setmaxnesting()
9203 p = upb_env_realloc(d->env, d->callstack, old_size, new_size); in upb_pbdecoder_setmaxnesting()
9357 size_t old_size = e->limit - e->buf; in reserve() local
9359 size_t new_size = old_size; in reserve()
9365 new_buf = upb_env_realloc(e->env, e->buf, old_size, new_size); in reserve()
9441 size_t old_size = in start_delim() local
9443 size_t new_size = old_size * 2; in start_delim()
9445 upb_env_realloc(e->env, e->segbuf, old_size, new_size); in start_delim()
[all …]