Searched refs:allocated_size_ (Results 1 – 2 of 2) sorted by relevance
48 memcpy(elements_, old_elements, allocated_size_ * sizeof(elements_[0])); in Reserve()57 int swap_allocated_size = allocated_size_; in Swap()66 allocated_size_ = other->allocated_size_; in Swap()72 other->allocated_size_ = swap_allocated_size; in Swap()
252 int allocated_size_; variable615 allocated_size_(0), in RepeatedPtrFieldBase()621 for (int i = 0; i < allocated_size_; i++) { in Destroy()650 if (current_size_ < allocated_size_) { in Add()653 if (allocated_size_ == total_size_) Reserve(total_size_ + 1); in Add()654 ++allocated_size_; in Add()717 for (int i = 0; i < allocated_size_; ++i) { in SpaceUsedExcludingSelf()725 if (current_size_ < allocated_size_) { in AddFromCleared()739 ++allocated_size_; in AddAllocated()740 } else if (allocated_size_ == total_size_) { in AddAllocated()[all …]