Lines Matching refs:mItemSize

45     : mStorage(0), mCount(0), mFlags(flags), mItemSize(itemSize)
51 mFlags(rhs.mFlags), mItemSize(rhs.mItemSize)
63 this, (int)(mCount*mItemSize));
69 LOG_ALWAYS_FATAL_IF(mItemSize != rhs.mItemSize,
90 sb = SharedBuffer::alloc(capacity() * mItemSize);
104 return SharedBuffer::bufferFromData(mStorage)->size() / mItemSize;
176 void* item = reinterpret_cast<char*>(array) + mItemSize*(i);
177 void* curr = reinterpret_cast<char*>(array) + mItemSize*(i-1);
184 temp = malloc(mItemSize);
186 item = reinterpret_cast<char*>(array) + mItemSize*(i);
187 curr = reinterpret_cast<char*>(array) + mItemSize*(i-1);
195 void* next = reinterpret_cast<char*>(array) + mItemSize*(i);
201 curr = reinterpret_cast<char*>(array) + mItemSize*(j);
305 return reinterpret_cast<char*>(buffer) + index*mItemSize;
320 return reinterpret_cast<const char*>(buffer) + index*mItemSize;
334 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
386 SharedBuffer* sb = cur_sb->editResize(new_capacity * mItemSize);
389 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
396 const void* from = reinterpret_cast<const uint8_t *>(mStorage) + where*mItemSize;
397 void* dest = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize;
407 const void* from = reinterpret_cast<const uint8_t *>(array) + where*mItemSize;
408 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize;
438 SharedBuffer* sb = cur_sb->editResize(new_capacity * mItemSize);
441 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
448 const void* from = reinterpret_cast<const uint8_t *>(mStorage) + (where+amount)*mItemSize;
449 void* dest = reinterpret_cast<uint8_t *>(array) + where*mItemSize;
458 void* to = reinterpret_cast<uint8_t *>(array) + where*mItemSize;
461 const void* from = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize;
469 return mItemSize;