Home
last modified time | relevance | path

Searched refs:new_capacity (Results 1 – 2 of 2) sorted by relevance

/ndk/sources/android/support/tests/minitest/
Dminitest.cc107 size_t new_capacity = capacity_; in Resize() local
108 while (new_capacity < new_size) in Resize()
109 new_capacity += (new_capacity >> 1) + 8; in Resize()
111 Reserve(new_capacity); in Resize()
117 void String::Reserve(size_t new_capacity) { in Reserve() argument
118 str_ = reinterpret_cast<char*>(::realloc(str_, new_capacity + 1)); in Reserve()
119 if (new_capacity > capacity_) in Reserve()
120 ::memset(str_ + capacity_, '\0', new_capacity - capacity_); in Reserve()
121 capacity_ = new_capacity; in Reserve()
Dminitest.h187 void Reserve(size_t new_capacity);