ns-allinone-2.35/ns-2.35/dccp/dccp_sb.cc
DCCPSendBuffer::DCCPSendBuffer(int size): head_(0), tail_(0),
	size_(size), empty_(true) {
	if (size_ <= 0)
		size_ = 1;
	
	buf_ = new int[size_];
}
/* Constructor
 * arg: size - Maximum size of buffer
 * ret: a new DCCPSendBuffer
 */
Constructor
arg: size - Maximum size of buffer
ret: a new DCCPSendBuffer
Constructor arg : size - Maximum size of buffer ret : a new DCCPSendBuffer
DCCPSendBuffer::DCCPSendBuffer(int size): head_(0), tail_(0),
	size_(size), empty_(true) {
	if (size_ <= 0)
		size_ = 1;
	buf_ = new int[size_];
}
DCCPSendBuffer :: DCCPSendBuffer ( int size ) : head_ ( 0 ) , tail_ ( 0 ) , size_ ( size ) , empty_ ( true ) { if ( size_ <= 0 ) size_ = 1 ; buf_ = new int [ size_ ] ; }
Constructor
 arg: size - Maximum size of buffer
 ret: a new DCCPSendBuffer
Constructor arg : size - Maximum size of buffer ret : a new DCCPSendBuffer