Lines Matching refs:cbAllWritten
862 size_t cbAllWritten = 0;
868 if (cbAllWritten == cbMemRead)
870 size_t cbToWrite = cbMemRead - cbAllWritten;
872 rc = vdIfIoFileWriteSync(pIfIo, pInt->pvStorage, pInt->cbCurFile, &pcBuf[cbAllWritten],
880 cbAllWritten += cbWritten;
888 RTSha256Update(&pInt->ctx.Sha256, pcBuf, cbAllWritten);
890 RTSha1Update(&pInt->ctx.Sha1, pcBuf, cbAllWritten);
893 RTCircBufReleaseReadBlock(pInt->pCircBuf, cbAllWritten);
894 cbMemAllRead += cbAllWritten;
1335 size_t cbAllWritten = 0;
1339 if (cbAllWritten == cbSize)
1341 size_t cbToWrite = RT_MIN(pInt->cbZeroBuf, cbSize - cbAllWritten);
1347 cbAllWritten += cbWritten;
1354 size_t cbAllWritten = 0;
1358 if (cbAllWritten == cbWrite)
1366 if ((cbWrite - cbAllWritten) > cbAvail)
1382 size_t cbToWrite = RT_MIN(cbWrite - cbAllWritten, cbAvail);
1387 memcpy(pcBuf, &((char*)pvBuf)[cbAllWritten], cbMemWritten);
1390 cbAllWritten += cbMemWritten;
1395 *pcbWritten = cbAllWritten;
1648 size_t cbAllWritten = 0;
1651 if (cbAllWritten >= cbSize)
1653 size_t cbToWrite = cbSize - cbAllWritten;
1655 rc = pIfIo->pfnWriteSync(pvUser, pvStorage, cbAllWritten, &((char*)pvBuf)[cbAllWritten], cbToWrite, &cbWritten);
1658 cbAllWritten += cbWritten;