Lines Matching refs:amount
377 void* VectorImpl::_grow(size_t where, size_t amount) in _grow() argument
384 this, (int)where, (int)amount, (int)mCount); // caller already checked in _grow()
387 LOG_ALWAYS_FATAL_IF(__builtin_add_overflow(mCount, amount, &new_size), "new_size overflow"); in _grow()
431 void* dest = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _grow()
444 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _grow()
453 void VectorImpl::_shrink(size_t where, size_t amount) in _shrink() argument
461 ALOG_ASSERT(where + amount <= mCount, in _shrink()
463 this, (int)where, (int)amount, (int)mCount); // caller already checked in _shrink()
466 LOG_ALWAYS_FATAL_IF(__builtin_sub_overflow(mCount, amount, &new_size)); in _shrink()
497 … const void* from = reinterpret_cast<const uint8_t *>(mStorage) + (where+amount)*mItemSize; in _shrink()
510 _do_destroy(to, amount); in _shrink()
512 const void* from = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _shrink()