Lines Matching refs:pch
41 pStream->pch = NULL;
74 pStream->pch = (char *)pvFile;
98 pStream->pch = (char *)RTMemAlloc(cbEstimate);
99 if (pStream->pch)
116 RTMemFree(pStream->pch);
117 pStream->pch = NULL;
131 if (pStream->pch)
134 RTFileReadAllFree(pStream->pch, pStream->cbAllocated);
136 RTMemFree(pStream->pch);
137 pStream->pch = NULL;
176 pvNew = RTMemRealloc(pStream->pch, cbAllocated);
182 pvNew = RTMemDupEx(pStream->pch, pStream->off, cbAllocated - pStream->off);
185 RTFileReadAllFree(pStream->pch, pStream->cbAllocated);
188 pStream->pch = (char *)pvNew;
253 if (RTStrEnd(pStream->pch, pStream->cb))
279 AssertReturn(pStream->pch[offEol] == '\n', VERR_INTERNAL_ERROR_3);
282 AssertReturn(pStream->pch[offEol] == '\r', VERR_INTERNAL_ERROR_3);
283 AssertReturn(pStream->pch[offEol + 1] == '\n', VERR_INTERNAL_ERROR_3);
325 rc = RTFileWrite(hFile, pStream->pch, pStream->cb, NULL);
360 rc = RTFileWrite(h.u.hFile, pStream->pch, pStream->cb, NULL);
363 rc = RTPipeWriteBlocking(h.u.hPipe, pStream->pch, pStream->cb, NULL);
406 const char *pchRet = &pStream->pch[off];
407 const char *pch = (const char *)memchr(pchRet, '\n', cb);
408 if (RT_LIKELY(pch))
410 cb = pch - pchRet;
413 || pch[-1] != '\r')
701 const char *pchRet = &pStream->pch[pStream->paLines[iLine].off];
758 return pStream->pch + pStream->off;
786 char ch = pStream->pch[pStream->off++];
822 char ch = pStream->pch[pStream->off];
852 memcpy(pvBuf, &pStream->pch[pStream->off], cbToRead);
891 const char *pchLF = (const char *)memchr(pStream->pch, '\n', pStream->cb);
892 if (pchLF && pchLF != pStream->pch && pchLF[-1] == '\r')
961 pStream->pch[off++] = '\n';
964 pStream->pch[off++] = '\r';
965 pStream->pch[off++] = '\n';
1003 memcpy(&pStream->pch[off], pchLine, cchLine);
1006 pStream->pch[off++] = '\n';
1009 pStream->pch[off++] = '\r';
1010 pStream->pch[off++] = '\n';
1089 || pStream->pch[pStream->paLines[iLine].off + pStream->paLines[iLine].cch - 1] != '\r')
1121 memcpy(&pStream->pch[off], pchBuf, cchBuf);
1155 pStream->pch[off] = ch;
1267 const char *psz = &pStream->pch[pStream->off - 1];
1303 const char *psz = &pStream->pch[pStream->off];
1342 const char *psz = &pStream->pch[pStream->off - 1];