This method clears the Vector's data without deallocating the backing buffer, so that it can be reused without reallocation.