Lines Matching refs:SharedBuffer
54 SharedBuffer::bufferFromData(mStorage)->acquire(); in VectorImpl()
76 SharedBuffer::bufferFromData(mStorage)->acquire(); in operator =()
88 const SharedBuffer* sb = SharedBuffer::bufferFromData(mStorage); in editArrayImpl()
89 SharedBuffer* editable = sb->attemptEdit(); in editArrayImpl()
93 editable = SharedBuffer::alloc(sb->size()); in editArrayImpl()
109 return SharedBuffer::bufferFromData(mStorage)->size() / mItemSize; in capacity()
344 SharedBuffer* sb = SharedBuffer::alloc(new_allocation_size); in setCapacity()
369 const SharedBuffer* sb = SharedBuffer::bufferFromData(mStorage); in release_storage()
370 if (sb->release(SharedBuffer::eKeepStorage) == 1) { in release_storage()
372 SharedBuffer::dealloc(sb); in release_storage()
415 const SharedBuffer* cur_sb = SharedBuffer::bufferFromData(mStorage); in _grow()
416 SharedBuffer* sb = cur_sb->editResize(new_alloc_size); in _grow()
423 SharedBuffer* sb = SharedBuffer::alloc(new_alloc_size); in _grow()
482 const SharedBuffer* cur_sb = SharedBuffer::bufferFromData(mStorage); in _shrink()
483 SharedBuffer* sb = cur_sb->editResize(new_capacity * mItemSize); in _shrink()
490 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in _shrink()