/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTPipe.cpp | 69 size_t cbRead = 0; local 70 rc = RTPipeReadBlocking(hPipe, szTmp, sizeof(szTmp) - 1, &cbRead); 73 szTmp[cbRead] = '\0'; 177 size_t cbRead = 0; local 179 RTTESTI_CHECK_RC(rc = RTPipeReadBlocking(hPipeR, szTmp, sizeof(szTmp) - 1, &cbRead), VINF_SUCCESS); 181 cbRead = 0; 182 RTTESTI_CHECK_RETV(cbRead < sizeof(szTmp)); 183 szTmp[cbRead] = '\0'; 234 size_t cbRead; 235 RTTESTI_CHECK_RC(RTPipeRead(hPipeR, s_abBuf, RT_MIN(sizeof(s_abBuf), cbTotal) / 2, &cbRead), VINF_SUCCES [all...] |
H A D | tstRTDigest.cpp | 296 size_t cbRead; local 306 rc = MyReadFile(hFile, abBuf, sizeof(abBuf), &cbRead, &cbMaxLeft); 307 if (RT_FAILURE(rc) || !cbRead) 309 uCRC32 = RTCrc32Process(uCRC32, abBuf, cbRead); 321 rc = MyReadFile(hFile, abBuf, sizeof(abBuf), &cbRead, &cbMaxLeft); 322 if (RT_FAILURE(rc) || !cbRead) 324 uCRC64 = RTCrc64Process(uCRC64, abBuf, cbRead); 337 rc = MyReadFile(hFile, abBuf, sizeof(abBuf), &cbRead, &cbMaxLeft); 338 if (RT_FAILURE(rc) || !cbRead) 340 RTMd2Update(&Ctx, abBuf, cbRead); [all...] |
H A D | tstFile.cpp | 132 size_t cbRead = 0; local 133 while (cbRead < sizeof(szTestBuf)) 136 rc = RTFileRead(File, &szReadBuf[cbRead], sizeof(szTestBuf) - cbRead, &cbReadPart); 139 cbRead += cbReadPart; 203 size_t cbRead = 0; local 204 while (cbRead < sizeof(szTestBuf)) 207 rc = RTFileRead(File, &szReadBuf[cbRead], sizeof(szTestBuf) - cbRead, &cbReadPart); 210 cbRead [all...] |
H A D | tstRTProcCreateEx.cpp | 255 size_t cbRead; local 256 int rc = RTPipeReadBlocking(hPipeR, &szOutput[offOutput], cbLeft, &cbRead); 262 offOutput += cbRead; 320 size_t cbRead; local 321 int rc = RTPipeReadBlocking(hPipeR, &szOutput[offOutput], cbLeft, &cbRead); 327 offOutput += cbRead; 386 size_t cbRead; local 387 int rc = RTPipeReadBlocking(hPipeR, &szOutput[offOutput], cbLeft, &cbRead); 393 offOutput += cbRead;
|
/vbox/src/VBox/Runtime/r3/linux/ |
H A D | RTSystemQueryDmiString-linux.cpp | 66 size_t cbRead; local 67 rc = RTLinuxSysFsReadFile(fd, pszBuf, cbBuf, &cbRead); 71 if (cbRead == cbBuf) 72 pszBuf[cbRead - 1] = '\0'; 76 pszBuf[cbRead] = '\0'; 77 if (cbRead > 0 && pszBuf[cbRead - 1] == '\n') 78 pszBuf[cbRead - 1] = '\0';
|
/vbox/src/VBox/ValidationKit/bootsectors/ |
H A D | VBoxBs2Linker.cpp | 158 size_t cbRead = fread(abBuf, sizeof(uint8_t), 4096, pInput); local 159 if (!cbRead || ferror(pInput)) 163 if (cbRead != 4096 && !feof(pInput)) 166 (unsigned)cbRead); 170 if ((cbRead & 0x1ff) != 0) 172 memset(&abBuf[cbRead], 0, 4096 - cbRead); 173 cbRead = (cbRead + 0x1ff) & ~0x1ffU; 177 if (fwrite(abBuf, sizeof(uint8_t), cbRead, pOutpu [all...] |
/vbox/src/VBox/Runtime/common/checksum/ |
H A D | RTSha1Digest.cpp | 68 size_t cbRead = RT_MIN(cbBuf - cbReadTotal, _1M); local 69 RTSha1Update(&Ctx, pvTmp, cbRead); 70 cbReadTotal += cbRead; 71 pvTmp += cbRead; 152 size_t cbRead; local 153 rc = RTFileRead(hFile, pvBuf, cbBuf, &cbRead); 154 if (RT_FAILURE(rc) || !cbRead) 156 RTSha1Update(&Ctx, pvBuf, cbRead); 157 cbReadTotal += cbRead;
|
H A D | RTSha256Digest.cpp | 67 size_t cbRead = RT_MIN(cbBuf - cbReadTotal, _1M); local 68 RTSha256Update(&Ctx, pvTmp, cbRead); 69 cbReadTotal += cbRead; 70 pvTmp += cbRead; 151 size_t cbRead; local 152 rc = RTFileRead(hFile, pvBuf, cbBuf, &cbRead); 153 if (RT_FAILURE(rc) || !cbRead) 155 RTSha256Update(&Ctx, pvBuf, cbRead); 156 cbReadTotal += cbRead;
|
H A D | manifest.cpp | 135 size_t cbRead = 0; local 136 rc = RTFileRead(file, pvBuf, cbToRead, &cbRead); 140 rc = RTManifestVerifyFilesBuf(pvBuf, cbRead, paTests, cTests, piFailed); 283 size_t cbRead = 0; local 287 if (cbRead >= cbSize) 290 size_t cch = rtManifestIndexOfCharInBuf(pcBuf, cbSize - cbRead, '\n') + 1; 300 cbRead += cch; 326 cbRead += cch; 353 size_t cbRead = 0; local 357 if (cbRead > [all...] |
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | rand-posix.cpp | 56 ssize_t cbRead = read(pThis->u.File.hFile, pb, cb); local 57 if ((size_t)cbRead != cb) 65 if (cbRead > 0) 67 cb -= cbRead; 68 pb += cbRead; 70 cbRead = read(pThis->u.File.hFile, pb, cb); 71 } while ( (size_t)cbRead != cb 73 AssertReleaseMsg((size_t)cbRead == cb, ("%zu != %zu, cTries=%zd errno=%d\n", cbRead, cb, cTries, errno));
|
/vbox/src/VBox/Runtime/r3/ |
H A D | isofs.cpp | 174 size_t cbRead; local 175 rc = RTFileRead(pFile->file, (RTISOFSPATHTABLEHEADER*)&header, sizeof(RTISOFSPATHTABLEHEADER), &cbRead); 178 cbLeft -= cbRead; 185 rc = RTFileRead(pFile->file, (char*)pszName, header.length, &cbRead); 188 cbLeft -= cbRead; 189 pszName[cbRead] = '\0'; /* Terminate string. */ 245 size_t cbRead; local 252 rc = RTFileRead(pFile->file, (PRTISOFSPRIVOLDESC)&pvd, sizeof(RTISOFSPRIVOLDESC), &cbRead); 253 if (RT_FAILURE(rc) || cbRead < sizeof(RTISOFSPRIVOLDESC)) 323 size_t cbRead local 500 size_t cbRead; local 570 size_t cbToRead, cbRead, cbWritten; local [all...] |
/vbox/src/VBox/Runtime/common/vfs/ |
H A D | vfsiosmisc.cpp | 62 size_t cbRead = 0; local 63 rc = RTVfsIoStrmRead(hVfsIos, &achBuf[cbUsed], sizeof(achBuf) - cbUsed - 1, true /*fBlocking*/, &cbRead); 66 cbUsed += cbRead;
|
/vbox/src/VBox/Storage/testcase/ |
H A D | tstVDCopy.cpp | 133 size_t cbRead = RT_MIN((cbSize1 - uOffCurr), VD_MERGE_BUFFER_SIZE); local 135 rc = VDRead(pVD1, uOffCurr, pbBuf1, cbRead); 138 rc = VDRead(pVD2, uOffCurr, pbBuf2, cbRead); 141 if (memcmp(pbBuf1, pbBuf2, cbRead)) 145 for (size_t i = 0; i < cbRead; i++) 156 uOffCurr += cbRead;
|
H A D | VDMemDisk.h | 70 * @param cbRead The amount of bytes to read. 73 int VDMemDiskRead(PVDMEMDISK pMemDisk, uint64_t off, size_t cbRead, PRTSGBUF pSgBuf);
|
/vbox/include/VBox/ |
H A D | vd-filter-backend.h | 83 * @param cbRead Number of bytes read. 86 DECLR3CALLBACKMEMBER(int, pfnFilterRead, (void *pvBackendData, uint64_t uOffset, size_t cbRead,
|
/vbox/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg/ |
H A D | VBoxVideoWinDbg.cpp | 160 ULONG cbRead = 0; local 162 uRc = ReadMemory(u64Mem, pvBuf, cbSize, &cbRead); 167 else if (cbRead != cbSize) 169 dprintf("the actual number of bytes read(%d) no equal the requested size(%d)\n", (UINT)cbRead, (UINT)cbSize); 182 ULONG cbRead = 0; local 183 uRc = ReadMemory(u64Offset, pvcBuf, u64DefaultPitch, &cbRead); 192 else if (cbRead != u64DefaultPitch) 194 dprintf("WARNING!!! the actual number of bytes read(%d) not equal the requested size(%d), chunk(%d)\n", (UINT)cbRead, (UINT)u64DefaultPitch, (UINT)i);
|
/vbox/src/VBox/Runtime/include/internal/ |
H A D | dvm.h | 240 * @param cbRead How many bytes to read. 242 DECLCALLBACKMEMBER(int, pfnVolumeRead)(RTDVMVOLUMEFMT hVolFmt, uint64_t off, void *pvBuf, size_t cbRead); 287 * @param cbRead How much to read. 289 DECLINLINE(int) rtDvmDiskRead(PCRTDVMDISK pDisk, uint64_t off, void *pvBuf, size_t cbRead) argument 293 AssertReturn(cbRead > 0, VERR_INVALID_PARAMETER); 294 AssertReturn(off + cbRead <= pDisk->cbDisk, VERR_INVALID_PARAMETER); 296 return pDisk->pfnRead(pDisk->pvUser, off, pvBuf, cbRead);
|
/vbox/src/bldprogs/ |
H A D | bin2c.c | 82 size_t cbRead; local 189 while ((cbRead = fread(&abLine[0], 1, cbLine, pFileIn)) > 0) 199 for (j = 0; j < cbRead; j++) 206 for (j = 0; j < cbRead; j++) 216 off += cbRead;
|
H A D | filesplitter.cpp | 174 size_t cbRead = fread(*ppszFile, 1, FileStat.st_size, pFile); local 175 if ( cbRead <= (size_t)FileStat.st_size 176 && (cbRead > 0 || !ferror(pFile)) ) 180 (*ppszFile)[cbRead] = '\0'; 182 *pcchFile = (size_t)cbRead;
|
/vbox/include/iprt/ |
H A D | stream.h | 168 * Must be cbRead bytes or more. 169 * @param cbRead Number of bytes to read. 171 * If NULL cbRead bytes are read or an error is returned. 173 RTR3DECL(int) RTStrmReadEx(PRTSTREAM pStream, void *pvBuf, size_t cbRead, size_t *pcbRead); 193 * Must be cbRead bytes or more. 194 * @param cbRead Number of bytes to read. 196 DECLINLINE(int) RTStrmRead(PRTSTREAM pStream, void *pvBuf, size_t cbRead) argument 198 return RTStrmReadEx(pStream, pvBuf, cbRead, NULL);
|
/vbox/src/VBox/Devices/Storage/ |
H A D | DrvMediaISO.cpp | 114 static DECLCALLBACK(int) drvMediaISORead(PPDMIMEDIA pInterface, uint64_t off, void *pvBuf, size_t cbRead) argument 117 LogFlow(("drvMediaISORead: off=%#llx pvBuf=%p cbRead=%#x (%s)\n", off, pvBuf, cbRead, pThis->pszFilename)); 125 int rc = RTFileReadAt(pThis->hFile, off, pvBuf, cbRead, NULL); 127 Log2(("drvMediaISORead: off=%#llx pvBuf=%p cbRead=%#x (%s)\n" 129 off, pvBuf, cbRead, pThis->pszFilename, 130 cbRead, pvBuf)); 133 pThis->hFile, off, pvBuf, cbRead, rc, pThis->pszFilename));
|
H A D | DrvRawImage.cpp | 110 static DECLCALLBACK(int) drvRawImageRead(PPDMIMEDIA pInterface, uint64_t off, void *pvBuf, size_t cbRead) argument 113 LogFlow(("drvRawImageRead: off=%#llx pvBuf=%p cbRead=%#x (%s)\n", off, pvBuf, cbRead, pThis->pszFilename)); 124 rc = RTFileRead(pThis->hFile, pvBuf, cbRead, NULL); 127 Log2(("drvRawImageRead: off=%#llx pvBuf=%p cbRead=%#x (%s)\n" 129 off, pvBuf, cbRead, pThis->pszFilename, 130 cbRead, pvBuf)); 134 pThis->hFile, pvBuf, cbRead, rc, off, pThis->pszFilename));
|
/vbox/src/VBox/VMM/VMMR3/ |
H A D | DBGFStack.cpp | 47 size_t cbRead; local 48 for (cbRead = 0; cbRead < cb; cbRead++) 51 rc = DBGFR3MemRead(pUVM, idCpu, DBGFR3AddrAdd(&Addr, cbRead), (uint8_t *)pvBuf + cbRead, 1); 55 if (cbRead) 57 memset((char *)pvBuf + cbRead, 0, cb - cbRead); 58 *pcbRead = cbRead; 132 size_t cbRead = cbRetAddr + cbStackItem + sizeof(pFrame->Args); local [all...] |
/vbox/src/VBox/Storage/ |
H A D | VDVfs.cpp | 60 * @param cbRead Amount of bytes to read. 62 static int vdReadHelper(PVBOXHDD pDisk, uint64_t off, void *pvBuf, size_t cbRead) argument 68 && cbRead % 512 == 0) 69 rc = VDRead(pDisk, off, pvBuf, cbRead); 86 cbRead -= cbToCopy; 91 && (cbRead & ~(uint64_t)(512 - 1))) 93 size_t cbReadAligned = cbRead & ~(uint64_t)(512 - 1); 101 cbRead -= cbReadAligned; 106 && cbRead) 108 Assert(cbRead < 51 [all...] |
/vbox/src/VBox/Runtime/r3/win/ |
H A D | pipe-win.cpp | 591 DWORD cbRead = 0; local 595 &cbRead, &pThis->Overlapped)) 597 *pcbRead = cbRead; 607 if (GetOverlappedResult(pThis->hPipe, &pThis->Overlapped, &cbRead, TRUE /*fWait*/)) 609 *pcbRead = cbRead; 663 DWORD cbRead = 0; local 669 &cbRead, &pThis->Overlapped)) 674 if (GetOverlappedResult(pThis->hPipe, &pThis->Overlapped, &cbRead, TRUE /*fWait*/)) 688 cbToRead -= cbRead; 689 cbTotalRead += cbRead; 1021 DWORD cbRead = 0; local 1134 DWORD cbRead = 0; local 1312 DWORD cbRead = 0; local 1377 DWORD cbRead = 0; local [all...] |