Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Drepeated_field.cc53 Rep* old_rep = rep_; in InternalExtend() local
59 sizeof(old_rep->elements[0])) 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()
70 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
71 memcpy(rep_->elements, old_rep->elements, in InternalExtend()
72 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
73 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
78 delete [] reinterpret_cast<char*>(old_rep); in InternalExtend()
Drepeated_field.h1260 Rep* old_rep = rep_;
1294 MoveArray(rep_->elements, old_rep->elements, current_size_);
1298 InternalDeallocate(old_rep, old_total_size);