Lines Matching refs:where
123 void* where = _grow(index, length); in insertArrayAt() local
124 if (where) { in insertArrayAt()
125 _do_copy(where, array, length); in insertArrayAt()
127 return where ? index : (ssize_t)NO_MEMORY; in insertArrayAt()
144 void* where = _grow(index, numItems); in insertAt() local
145 if (where) { in insertAt()
147 _do_splat(where, item, numItems); in insertAt()
149 _do_construct(where, numItems); in insertAt()
152 return where ? index : (ssize_t)NO_MEMORY; in insertAt()
367 void* VectorImpl::_grow(size_t where, size_t amount) in _grow() argument
372 ALOG_ASSERT(where <= mCount, in _grow()
374 this, (int)where, (int)amount, (int)mCount); // caller already checked in _grow()
381 (mCount==where) && in _grow()
396 if (where != 0) { in _grow()
397 _do_copy(array, mStorage, where); in _grow()
399 if (where != mCount) { in _grow()
400 … const void* from = reinterpret_cast<const uint8_t *>(mStorage) + where*mItemSize; in _grow()
401 void* dest = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _grow()
402 _do_copy(dest, from, mCount-where); in _grow()
412 if (where != mCount) { in _grow()
413 const void* from = reinterpret_cast<const uint8_t *>(array) + where*mItemSize; in _grow()
414 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _grow()
415 _do_move_forward(to, from, mCount - where); in _grow()
419 void* free_space = const_cast<void*>(itemLocation(where)); in _grow()
423 void VectorImpl::_shrink(size_t where, size_t amount) in _shrink() argument
431 ALOG_ASSERT(where + amount <= mCount, in _shrink()
433 this, (int)where, (int)amount, (int)mCount); // caller already checked in _shrink()
439 if ((where == new_size) && in _shrink()
454 if (where != 0) { in _shrink()
455 _do_copy(array, mStorage, where); in _shrink()
457 if (where != new_size) { in _shrink()
458 … const void* from = reinterpret_cast<const uint8_t *>(mStorage) + (where+amount)*mItemSize; in _shrink()
459 void* dest = reinterpret_cast<uint8_t *>(array) + where*mItemSize; in _shrink()
460 _do_copy(dest, from, new_size - where); in _shrink()
470 void* to = reinterpret_cast<uint8_t *>(array) + where*mItemSize; in _shrink()
472 if (where != new_size) { in _shrink()
473 const void* from = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; in _shrink()
474 _do_move_backward(to, from, new_size - where); in _shrink()