Searched refs:new_size (Results 1 – 9 of 9) sorted by relevance
376 const size_t new_size = mCount + amount; in _grow() local377 if (capacity() < new_size) { in _grow()378 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2); in _grow()418 mCount = new_size; in _grow()435 const size_t new_size = mCount - amount; in _shrink() local436 if (new_size*3 < capacity()) { in _shrink()437 const size_t new_capacity = max(kMinVectorCapacity, new_size*2); in _shrink()439 if ((where == new_size) && in _shrink()457 if (where != new_size) { in _shrink()460 _do_copy(dest, from, new_size - where); in _shrink()[all …]
99 SharedBuffer* SharedBuffer::reset(size_t new_size) const in reset()102 SharedBuffer* sb = alloc(new_size); in reset()
72 size_t new_size = buffer_size_ + size - available_write(); in reserve() local73 uint8_t* new_buffer = new (std::nothrow) uint8_t[new_size]; in reserve()79 buffer_size_ = new_size; in reserve()
88 SharedBuffer* SharedBuffer::reset(size_t new_size) const in reset()91 SharedBuffer* sb = alloc(new_size); in reset()
283 const size_t new_size = mCount + amount; in _grow() local284 if (capacity() < new_size) { in _grow()285 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2); in _grow()336 const size_t new_size = mCount - amount; in _shrink() local337 if (new_size*3 < capacity()) { in _shrink()338 const size_t new_capacity = max(kMinVectorCapacity, new_size*2); in _shrink()
266 const uint8_t* Reset(size_t new_size) { in Reset()268 key_material = new (std::nothrow) uint8_t[new_size]; in Reset()270 key_material_size = new_size; in Reset()
35 event_t* ReallocMemoryForEvent(event_t* event, size_t new_size);
176 size_t new_size = sizeof(*event) + new_len; in CreateOrUpdateBuildID() local177 if (!event || new_size > event->header.size) { in CreateOrUpdateBuildID()178 build_id_event* new_event = CallocMemoryForBuildID(new_size); in CreateOrUpdateBuildID()206 event->header.size = new_size; in CreateOrUpdateBuildID()1602 size_t new_size = event->header.size + size_change; in LocalizeMMapFilenames() local1608 malloced_unique_ptr<event_t> new_event(CallocMemoryForEvent(new_size)); in LocalizeMMapFilenames()1639 event->header.size = new_size; in LocalizeMMapFilenames()
129 int new_size = temp.size() < 8 ? temp.size() : 8; in build_blending() local130 expand(fb, fb, new_size); in build_blending()