Lines Matching refs:cbAllRead
923 size_t cbAllRead = 0;
926 if (cbAllRead == cbMemWrite)
928 size_t cbToRead = cbMemWrite - cbAllRead;
930 rc = vdIfIoFileReadSync(pIfIo, pInt->pvStorage, pInt->cbCurFile, &pcBuf[cbAllRead], cbToRead, &cbRead);
944 cbAllRead += cbRead;
952 RTSha256Update(&pInt->ctx.Sha256, pcBuf, cbAllRead);
954 RTSha1Update(&pInt->ctx.Sha1, pcBuf, cbAllRead);
957 RTCircBufReleaseWriteBlock(pInt->pCircBuf, cbAllRead);
958 cbMemAllWrite += cbAllRead;
1378 // RTPrintf("############## wait %lu %lu %lu \n", cbRead, cbAllRead, cbAvail);
1438 size_t cbAllRead = 0;
1443 if (cbAllRead == cbRead)
1458 if ((cbRead - cbAllRead) > cbAvail)
1470 // RTPrintf("############## wait %lu %lu %lu \n", cbRead, cbAllRead, cbAvail);
1474 size_t cbToRead = RT_MIN(cbRead - cbAllRead, cbAvail);
1480 memcpy(&((char*)pvBuf)[cbAllRead], pcBuf, cbMemRead);
1483 cbAllRead += cbMemRead;
1489 *pcbRead = cbAllRead;
1584 size_t cbAllRead = 0;
1597 rc = pIfIo->pfnReadSync(pvUser, pvStorage, cbAllRead, pvTmpBuf, cbTmpSize, &cbRead);
1601 pvBuf = RTMemRealloc(pvBuf, cbAllRead + cbRead);
1607 memcpy(&((char*)pvBuf)[cbAllRead], pvTmpBuf, cbRead);
1608 cbAllRead += cbRead;
1623 *pcbSize = cbAllRead;