Home
last modified time | relevance | path

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

/external/protobuf/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.h1262 Rep* old_rep = rep_;
1296 MoveArray(rep_->elements, old_rep->elements, current_size_);
1300 InternalDeallocate(old_rep, old_total_size);
/external/libcxx/include/
D__refstring92 struct _Rep_base *old_rep = rep_from_data(__imp_);
98 if (__sync_add_and_fetch(&old_rep->count, count_t(-1)) < 0)
100 ::operator delete(old_rep);