Searched refs:old_size (Results 1 – 3 of 3) sorted by relevance
86 size_t old_size = size_; in grow_by() local87 resize(old_size + size_delta); in grow_by()88 return data_ + old_size; in grow_by()
704 size_t old_size = ptr ? malloc_usable_size(ptr) : 0; in DefaultReallocate() local705 if (size <= old_size) in DefaultReallocate()712 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()
219 size_t old_size = ptr ? malloc_usable_size(ptr) : 0; in DefaultReallocate() local220 if (size <= old_size) in DefaultReallocate()227 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()