NPN_PLUGIN_LOG(PLUGIN_LOG_NORMAL, ("NPN_Write: npp=%p, url=%s, len=%d, buffer=%s\n", (void*)npp, pstream->url, len, (char*)buffer));
_write(NPP npp, NPStream *pstream, int32 len, void *buffer){#ifdef NS_DEBUG  printf("\nWrite called by plugin: \n%s\n", buffer);#endif	// negative return indicates failure to the plugin	if(!npp)		return -1;  ns4xStreamWrapper* wrapper = (ns4xStreamWrapper*) pstream->ndata;  NS_ASSERTION(wrapper != NULL, "null stream");  if (wrapper == NULL)      return -1;  nsIOutputStream* stream;  wrapper->GetStream(stream);    PRUint32 count = 0;  nsresult rv = stream->Write((char *)buffer, len, &count);  NS_RELEASE(stream);  if(rv != NS_OK)	  return -1;  return (int32)count;}