Lines Matching refs:where
129 void* where = _grow(index, length); in insertArrayAt() local
130 if (where) { in insertArrayAt()
131 _do_copy(where, array, length); in insertArrayAt()
133 return where ? index : (ssize_t)NO_MEMORY; in insertArrayAt()
150 void* where = _grow(index, numItems); in insertAt() local
151 if (where) { in insertAt()
153 _do_splat(where, item, numItems); in insertAt()
155 _do_construct(where, numItems); in insertAt()
158 return where ? index : (ssize_t)NO_MEMORY; in insertAt()
375 void* VectorImpl::_grow(size_t where, size_t amount) in _grow() argument
380 ALOG_ASSERT(where <= mCount, in _grow()
382 this, (int)where, (int)amount, (int)mCount); // caller already checked in _grow()
408 (mCount==where) && in _grow()
423 if (where != 0) { in _grow()
424 _do_copy(array, mStorage, where); in _grow()
426 if (where != mCount) { in _grow()
427 … const void* from = reinterpret_cast<const uint8_t *>(mStorage) + where*mItemSize; in _grow()
428 void* dest = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _grow()
429 _do_copy(dest, from, mCount-where); in _grow()
439 if (where != mCount) { in _grow()
440 const void* from = reinterpret_cast<const uint8_t *>(array) + where*mItemSize; in _grow()
441 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _grow()
442 _do_move_forward(to, from, mCount - where); in _grow()
446 void* free_space = const_cast<void*>(itemLocation(where)); in _grow()
450 void VectorImpl::_shrink(size_t where, size_t amount) in _shrink() argument
458 ALOG_ASSERT(where + amount <= mCount, in _shrink()
460 this, (int)where, (int)amount, (int)mCount); // caller already checked in _shrink()
475 if ((where == new_size) && in _shrink()
490 if (where != 0) { in _shrink()
491 _do_copy(array, mStorage, where); in _shrink()
493 if (where != new_size) { in _shrink()
494 … const void* from = reinterpret_cast<const uint8_t *>(mStorage) + (where+amount)*mItemSize; in _shrink()
495 void* dest = reinterpret_cast<uint8_t *>(array) + where*mItemSize; in _shrink()
496 _do_copy(dest, from, new_size - where); in _shrink()
506 void* to = reinterpret_cast<uint8_t *>(array) + where*mItemSize; in _shrink()
508 if (where != new_size) { in _shrink()
509 const void* from = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _shrink()
510 _do_move_backward(to, from, new_size - where); in _shrink()