Beispiel #1
0
OpenUtility::CStream::CStream(const OpenUtility::CStream &S)
{
	char *temp=S.GetStream();

	taille=S.GetSize();
	Stream=(char*)MyMalloc((taille+1)*sizeof(char));

	memcpy(Stream,temp,sizeof(char)*taille);
	Stream[taille]='\0';
}
Beispiel #2
0
bool OpenUtility::CStream::operator==(OpenUtility::CStream &S)
{
	unsigned int i=0;
	char *temp;

	if (S.taille!=taille) return(false);
	temp=S.GetStream();
	while (i<taille)
	{
		if (temp[i]!=Stream[i]) return(false);
		i++;
	}
	return(true);
}