Searched refs:new_size (Results 1 – 2 of 2) sorted by relevance
86 SharedBuffer* SharedBuffer::reset(size_t new_size) const in reset()89 SharedBuffer* sb = alloc(new_size); in reset()
340 const size_t new_size = mCount + amount; in _grow() local341 if (capacity() < new_size) { in _grow()342 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2); in _grow()393 const size_t new_size = mCount - amount; in _shrink() local394 if (new_size*3 < capacity()) { in _shrink()395 const size_t new_capacity = max(kMinVectorCapacity, new_size*2); in _shrink()