const char* buf = fromRawSegment; while (count-- > 0) { const char c = *buf++;
char c = 0;  const char *buf = fromRawSegment; for (; count>0; --count) { c = *buf++;
nsWriteLineToString(nsIInputStream* in,                    void* closure,                    const char* fromRawSegment,                    PRUint32 offset,                    PRUint32 count,                    PRUint32 *writeCount) {  nsCString* str = (nsCString*)closure;  *writeCount = 0;  const char* buf = fromRawSegment;  while (count-- > 0) {    const char c = *buf++;    (*writeCount)++;    if (c == LF) {      break;    }  }  str->Append(fromRawSegment, *writeCount);  return NS_BASE_STREAM_WOULD_BLOCK;}