ns-allinone-2.35/rap/media-app.cc
double QA::TotalBuf(int n, double *buffer)
{
	double totbuf = 0.0;
	int i;

	for(i=0; i<n; i++)
		totbuf += buffer[i]; 
	return totbuf;
}
//
// Calculate accumulative amount of buffering for the lowest "n" layers
//
Calculate accumulative amount of buffering for the lowest "n" layers
Calculate accumulative amount of buffering for the lowest " n " layers
double QA::TotalBuf(int n, double *buffer)
{
	double totbuf = 0.0;
	int i;
	for(i=0; i<n; i++)
		totbuf += buffer[i]; 
	return totbuf;
}
double QA :: TotalBuf ( int n , double * buffer ) { double totbuf = 0.0 ; int i ; for ( i = 0 ; i < n ; i ++ ) totbuf += buffer [ i ] ; return totbuf ; }
Calculate accumulative amount of buffering for the lowest "n" layers
Calculate accumulative amount of buffering for the lowest " n " layers