Searched refs:NewCapacity (Results 1 – 8 of 8) sorted by relevance
141 size_t NewCapacity = Capacity * 2; in pushImpl() local142 while (RequiredCapacity > NewCapacity) in pushImpl()143 NewCapacity *= 2; in pushImpl()144 grow(NewCapacity); in pushImpl()153 void grow(size_t NewCapacity) { in grow() argument154 assert(NewCapacity > Capacity); in grow()157 char *NewBuffer = new char[NewCapacity]; in grow()158 unsigned NewIndex = Index + NewCapacity - Capacity; in grow()167 Capacity = NewCapacity; in grow()
97 unsigned NewCapacity = capacity() * 2; in push_back() local98 if (NewCapacity == 0) in push_back()99 NewCapacity = 4; in push_back()101 T* NewStart = (T*)malloc(sizeof(T) * NewCapacity); in push_back()113 End = Start + NewCapacity; in push_back()
218 size_t NewCapacity = 2*CurCapacity; in grow() local219 if (NewCapacity < MinSize) in grow()220 NewCapacity = MinSize; in grow()223 T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); in grow()240 Capacity = Begin+NewCapacity; in grow()
372 size_t NewCapacity = 2*CurCapacity; in grow() local373 if (NewCapacity < MinSize) in grow()374 NewCapacity = MinSize; in grow()377 T *NewElts = new (C) T[NewCapacity]; in grow()393 Capacity = Begin+NewCapacity; in grow()
229 inline int NewCapacity(int min_capacity) { in NewCapacity() function236 Vector<byte> new_store = Vector<byte>::New(NewCapacity(kInitialCapacity)); in ExpandBuffer()249 new_store = Vector<byte>::New(NewCapacity(new_content_size)); in ConvertToUtf16()
197 size_t NewCapacity = 2*CurCapacity + 1; // Always grow, even from zero. in grow() local198 if (NewCapacity < MinSize) in grow()199 NewCapacity = MinSize; in grow()200 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow()214 this->CapacityX = this->begin()+NewCapacity; in grow()
402 unsigned NewCapacity in Append() local406 char *NewBuffer = static_cast<char *>(malloc(NewCapacity)); in Append()412 BufferCapacity = NewCapacity; in Append()
100 unsigned NewCapacity = CurrentCapacity; in allocate() local102 NewCapacity *= 2; in allocate()103 } while (NewCapacity < UsedCapacity + Size); in allocate()105 char *NewStartOfBuffer = new char[NewCapacity]; in allocate()106 char *NewEndOfBuffer = NewStartOfBuffer + NewCapacity; in allocate()