Lines Matching refs:mStorage
45 : mStorage(nullptr), mCount(0), mFlags(flags), mItemSize(itemSize) in VectorImpl()
50 : mStorage(rhs.mStorage), mCount(rhs.mCount), in VectorImpl()
53 if (mStorage) { in VectorImpl()
54 SharedBuffer::bufferFromData(mStorage)->acquire(); in VectorImpl()
74 mStorage = rhs.mStorage; in operator =()
76 SharedBuffer::bufferFromData(mStorage)->acquire(); in operator =()
78 mStorage = nullptr; in operator =()
87 if (mStorage) { in editArrayImpl()
88 const SharedBuffer* sb = SharedBuffer::bufferFromData(mStorage); in editArrayImpl()
98 _do_copy(editable->data(), mStorage, mCount); in editArrayImpl()
100 mStorage = editable->data(); in editArrayImpl()
103 return mStorage; in editArrayImpl()
108 if (mStorage) { in capacity()
109 return SharedBuffer::bufferFromData(mStorage)->size() / mItemSize; in capacity()
295 mStorage = nullptr; in finish_vector()
347 _do_copy(array, mStorage, size()); in setCapacity()
349 mStorage = const_cast<void*>(array); in setCapacity()
368 if (mStorage) { in release_storage()
369 const SharedBuffer* sb = SharedBuffer::bufferFromData(mStorage); in release_storage()
371 _do_destroy(mStorage, mCount); in release_storage()
410 if ((mStorage) && in _grow()
415 const SharedBuffer* cur_sb = SharedBuffer::bufferFromData(mStorage); in _grow()
418 mStorage = sb->data(); in _grow()
427 _do_copy(array, mStorage, where); in _grow()
430 … const void* from = reinterpret_cast<const uint8_t *>(mStorage) + where*mItemSize; in _grow()
435 mStorage = const_cast<void*>(array); in _grow()
455 if (!mStorage) in _shrink()
482 const SharedBuffer* cur_sb = SharedBuffer::bufferFromData(mStorage); in _shrink()
485 mStorage = sb->data(); in _shrink()
494 _do_copy(array, mStorage, where); in _shrink()
497 … const void* from = reinterpret_cast<const uint8_t *>(mStorage) + (where+amount)*mItemSize; in _shrink()
502 mStorage = const_cast<void*>(array); in _shrink()