Searched refs:new_capacity (Results 1 – 1 of 1) sorted by relevance
244 ssize_t VectorImpl::setCapacity(size_t new_capacity) in setCapacity() argument247 ssize_t amount = new_capacity - size(); in setCapacity()252 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in setCapacity()261 return new_capacity; in setCapacity()285 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2); in _grow() local293 SharedBuffer* sb = cur_sb->editResize(new_capacity * mItemSize); in _grow()296 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in _grow()338 const size_t new_capacity = max(kMinVectorCapacity, new_size*2); in _shrink() local345 SharedBuffer* sb = cur_sb->editResize(new_capacity * mItemSize); in _shrink()348 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in _shrink()