Lines Matching refs:mStorage
47 : mStorage(0), mCount(0), mFlags(flags), mItemSize(itemSize) in VectorImpl()
52 : mStorage(rhs.mStorage), mCount(rhs.mCount), in VectorImpl()
55 if (mStorage) { in VectorImpl()
56 SharedBuffer::bufferFromData(mStorage)->acquire(); in VectorImpl()
76 mStorage = rhs.mStorage; in operator =()
78 SharedBuffer::bufferFromData(mStorage)->acquire(); in operator =()
80 mStorage = 0; in operator =()
89 if (mStorage) { in editArrayImpl()
90 const SharedBuffer* sb = SharedBuffer::bufferFromData(mStorage); in editArrayImpl()
100 _do_copy(editable->data(), mStorage, mCount); in editArrayImpl()
102 mStorage = editable->data(); in editArrayImpl()
105 return mStorage; in editArrayImpl()
110 if (mStorage) { in capacity()
111 return SharedBuffer::bufferFromData(mStorage)->size() / mItemSize; in capacity()
297 mStorage = 0; in finish_vector()
349 _do_copy(array, mStorage, size()); in setCapacity()
351 mStorage = const_cast<void*>(array); in setCapacity()
370 if (mStorage) { in release_storage()
371 const SharedBuffer* sb = SharedBuffer::bufferFromData(mStorage); in release_storage()
373 _do_destroy(mStorage, mCount); in release_storage()
411 if ((mStorage) && in _grow()
416 const SharedBuffer* cur_sb = SharedBuffer::bufferFromData(mStorage); in _grow()
419 mStorage = sb->data(); in _grow()
428 _do_copy(array, mStorage, where); in _grow()
431 … const void* from = reinterpret_cast<const uint8_t *>(mStorage) + where*mItemSize; in _grow()
436 mStorage = const_cast<void*>(array); in _grow()
456 if (!mStorage) in _shrink()
483 const SharedBuffer* cur_sb = SharedBuffer::bufferFromData(mStorage); in _shrink()
486 mStorage = sb->data(); in _shrink()
495 _do_copy(array, mStorage, where); in _shrink()
498 … const void* from = reinterpret_cast<const uint8_t *>(mStorage) + (where+amount)*mItemSize; in _shrink()
503 mStorage = const_cast<void*>(array); in _shrink()