PRInt32 BasicStringImpl::write(const char*, PRUint32)  { NS_ASSERTION(PR_FALSE, "Write to a const string"); mLastResult = NS_FILE_RESULT(PR_ILLEGAL_ACCESS_ERROR); return -1; }
virtual PRInt32                 write(const char* buf, PRUint32 count) { if (!buf) return 0;  char* cstring = ToNewCString(mString);  CharImpl chars(&cstring, mString.Length()); chars.Seek(PR_SEEK_SET, mOffset);  PRInt32 result = chars.write(buf,count); mLastResult = chars.get_result();  chars.Seek(PR_SEEK_SET, 0); PRUint32 newLength; chars.Available(&newLength); mString.AssignWithConversion(cstring, newLength);  delete [] (char*)mConstString; mConstString = cstring; return result; }
PRInt32 BasicStringImpl::write(const char*, PRUint32)//----------------------------------------------------------------------------------------{  NS_ASSERTION(PR_FALSE, "Write to a const string");  mLastResult = NS_FILE_RESULT(PR_ILLEGAL_ACCESS_ERROR);  return -1;}