Home | History | Annotate | Download | only in Common

Lines Matching full:newsize

71   void ChangeSize_KeepData(size_t newSize, size_t keepSize)

73 if (newSize == _size)
76 if (newSize > 0)
78 newBuffer = new T[newSize];
80 memcpy(newBuffer, _items, MyMin(MyMin(_size, keepSize), newSize) * sizeof(T));
84 _size = newSize;
140 void Alloc(size_t newSize)
144 _items = new T[newSize];
174 size_t newSize = buffer._size;
175 if (newSize > 0)
177 T *newBuffer = new T[newSize];;
179 _size = newSize;
181 for (size_t i = 0; i < newSize; i++)
222 size_t newSize = buffer._size;
223 if (newSize > 0)
225 T *newBuffer = new T[newSize];;
227 _size = newSize;
229 for (size_t i = 0; i < newSize; i++)