NS_ASSERTION(aLength == readlen, "nsCacheListener->OnDataAvailable: readlen != aLength");
NS_ASSERTION(aLength == readlen, "nsCacheListener->OnDataAvailable: " "readlen != aLength");
nsPluginCacheListener::OnDataAvailable(nsIChannel* channel, nsISupports* ctxt,                                        nsIInputStream* aIStream,                                        PRUint32 sourceOffset,                                        PRUint32 aLength){	PRUint32 readlen;	char* buffer = (char*) PR_Malloc(aLength);	if(buffer)		aIStream->Read(buffer, aLength, &readlen);	else		return NS_ERROR_OUT_OF_MEMORY;	NS_ASSERTION(aLength == readlen, "nsCacheListener->OnDataAvailable: readlen != aLength");#ifdef USE_CACHE	if(nsnull != mCachedFile)		mCachedFile->Write((char*)buffer, readlen);#else	if(nsnull != mStreamFile)		fwrite(buffer, sizeof(char), readlen, mStreamFile);#endif // USE_CACHE	PR_Free(buffer);	return NS_OK;}