Lines Matching refs:amount
375 void* VectorImpl::_grow(size_t where, size_t amount) in _grow() argument
382 this, (int)where, (int)amount, (int)mCount); // caller already checked in _grow()
385 LOG_ALWAYS_FATAL_IF(__builtin_add_overflow(mCount, amount, &new_size), "new_size overflow"); in _grow()
429 void* dest = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _grow()
442 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _grow()
451 void VectorImpl::_shrink(size_t where, size_t amount) in _shrink() argument
459 ALOG_ASSERT(where + amount <= mCount, in _shrink()
461 this, (int)where, (int)amount, (int)mCount); // caller already checked in _shrink()
464 LOG_ALWAYS_FATAL_IF(__builtin_sub_overflow(mCount, amount, &new_size)); in _shrink()
495 … const void* from = reinterpret_cast<const uint8_t *>(mStorage) + (where+amount)*mItemSize; in _shrink()
508 _do_destroy(to, amount); in _shrink()
510 const void* from = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _shrink()