/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTR0Common.h | 204 size_t cbLeft = sizeof(g_szErr) - off; local 205 if (cbLeft > 10) 212 cbLeft -= 2; 215 cbLeft--; 219 RTStrPrintfV(psz, cbLeft, pszFormat, va); 245 size_t cbLeft = sizeof(g_szErr) - off; local 246 if (cbLeft > 10) 253 cbLeft -= 2; 256 cbLeft--; 260 RTStrPrintfV(psz, cbLeft, pszForma 272 size_t cbLeft = sizeof(g_szErr) - off; local [all...] |
H A D | tstRTProcCreateEx.cpp | 250 size_t cbLeft = sizeof(szOutput) - 1 - offOutput; local 251 RTTESTI_CHECK(cbLeft > 0); 252 if (cbLeft == 0) 256 int rc = RTPipeReadBlocking(hPipeR, &szOutput[offOutput], cbLeft, &cbRead); 315 size_t cbLeft = sizeof(szOutput) - 1 - offOutput; local 316 RTTESTI_CHECK(cbLeft > 0); 317 if (cbLeft == 0) 321 int rc = RTPipeReadBlocking(hPipeR, &szOutput[offOutput], cbLeft, &cbRead); 381 size_t cbLeft = sizeof(szOutput) - 1 - offOutput; local 382 RTTESTI_CHECK(cbLeft > [all...] |
H A D | tstRTFileAio.cpp | 97 size_t cbLeft = cbTestFile; local 98 while (cbLeft) 104 size_t cbTransfer = cbLeft < cbTestBuf ? cbLeft : cbTestBuf; 116 cbLeft -= cbTransfer;
|
/vbox/src/VBox/Runtime/common/misc/ |
H A D | sg.cpp | 138 size_t cbLeft = cbCopy; local 140 while (cbLeft) 142 size_t cbThisCopy = RT_MIN(RT_MIN(pSgBufDst->cbSegLeft, cbLeft), pSgBufSrc->cbSegLeft); 157 cbLeft -= cbThisCopy; 160 return cbCopy - cbLeft; 169 size_t cbLeft = cbCmp; local 177 while (cbLeft) 179 size_t cbThisCmp = RT_MIN(RT_MIN(SgBuf1.cbSegLeft, cbLeft), SgBuf2.cbSegLeft); 196 cbLeft -= cbThisCmp; 209 size_t cbLeft local 276 size_t cbLeft = cbSet; local 300 size_t cbLeft = cbCopy; local 325 size_t cbLeft = cbCopy; local 349 size_t cbLeft = cbAdvance; local 430 size_t cbLeft = cbCheck; local [all...] |
/vbox/src/VBox/Storage/testcase/ |
H A D | VDMemDisk.cpp | 112 size_t cbLeft = cbWrite; 115 while ( cbLeft 127 || offCurr + cbLeft <= pSeg->Core.Key) 128 cbRange = cbLeft; 157 cbRange = RT_MIN(cbLeft, (size_t)(pSeg->Core.KeyLast + 1 - offCurr)); 168 cbLeft -= cbRange; 196 size_t cbLeft = cbRead; 199 while (cbLeft) 210 || offCurr + cbLeft <= pSeg->Core.Key) 213 cbRange = cbLeft; 352 size_t cbLeft = cbCmp; local [all...] |
/vbox/src/VBox/Runtime/generic/ |
H A D | RTDirCreateUniqueNumbered-generic.cpp | 53 size_t cbLeft = cbSize - (pszEnd - pszPath); local 64 cbLeft--; 85 ssize_t rc2 = RTStrFormatU32(pszEnd, cbLeft, i, 10, cchDigits, 0, RTSTR_F_WIDTH | RTSTR_F_ZEROPAD);
|
/vbox/src/VBox/Runtime/common/asn1/ |
H A D | asn1-ut-objid.cpp | 80 uint32_t cbLeft = *pcbEncoded; local 94 if (RT_UNLIKELY(cbLeft < 1)) 96 cbLeft -= 1; 101 if (RT_UNLIKELY(cbLeft < 2)) 103 cbLeft -= 2; 110 if (RT_UNLIKELY(cbLeft < 3)) 112 cbLeft -= 3; 120 if (RT_UNLIKELY(cbLeft < 4)) 122 cbLeft -= 4; 131 if (RT_UNLIKELY(cbLeft < 431 size_t cbLeft = sizeof(pThis->szObjId); local [all...] |
H A D | asn1-cursor.cpp | 71 pPrimaryCursor->Cursor.cbLeft = cb; 91 pChild->cbLeft = cb; 101 AssertReturn(pParent->cbLeft >= cb, VERR_ASN1_INTERNAL_ERROR_3); 103 pParent->cbLeft -= cb; 116 pChild->cbLeft = pAsn1Core->cb; 196 if (pCursor->cbLeft == 0) 199 "%u (%#x) bytes left over", pCursor->cbLeft, pCursor->cbLeft); 231 if (pCursor->cbLeft >= 2) 235 pCursor->cbLeft [all...] |
/vbox/src/VBox/Debugger/ |
H A D | DBGCTcp.cpp | 131 size_t cbLeft = cbBuf; local 132 while (cbLeft) 134 size_t cb = cbLeft; 144 const char *pszNL = (const char *)memchr(pvBuf, '\n', cbLeft); 156 cbLeft -= cb; 164 *pcbWritten = cbBuf - cbLeft;
|
H A D | DBGPlugInLinux.cpp | 272 uint32_t cbLeft = cbUsed; 276 while (cbLeft > 0) 282 if (cbLogBuf - offCur >= cbLeft) 288 || pHdr->cbTotal > cbLeft 292 Log(("dbgDiggerLinuxIDmsg_QueryKernelLog: Invalid printk_log record at %#x: cbTotal=%#x cbText=%#x cbDict=%#x cbLogBuf=%#x cbLeft=%#x\n", 293 offCur, pHdr->cbTotal, pHdr->cbText, pHdr->cbDict, cbLogBuf, cbLeft)); 303 cbLeft -= pHdr->cbTotal; 315 cbLeft = cbUsed; 334 cbLeft -= pHdr->cbTotal; 340 while (cbLeft > 530 uint32_t cbLeft = LNX_MAX_KALLSYMS_NAMES_SIZE; local 668 uint32_t cbLeft = LNX_MAX_KALLSYMS_NAMES_SIZE + sizeof(uBuf); local 1098 uint32_t cbLeft = LNX_MAX_KERNEL_SIZE; local [all...] |
/vbox/src/VBox/Disassembler/testcase/ |
H A D | tstDisasm-2.cpp | 49 size_t cbLeft; /**< The number of bytes left. (read) */ member in struct:MYDISSTATE 175 && pState->cbLeft >= cbMinRead)) 185 pState->cbLeft -= cbToRead; 195 if (pState->cbLeft > 0) 197 memcpy(&pState->Dis.abInstr[offInstr], pState->pbNext, pState->cbLeft); 198 offInstr += (uint8_t)pState->cbLeft; 199 cbMinRead -= (uint8_t)pState->cbLeft; 200 pState->pbNext += pState->cbLeft; 201 pState->uNextAddr += pState->cbLeft; 202 pState->cbLeft [all...] |
/vbox/src/VBox/VMM/VMMR0/ |
H A D | PGMR0SharedPage.cpp | 67 uint32_t cbLeft = pModule->aRegions[idxRegion].cb; Assert(!(cbLeft & PAGE_OFFSET_MASK)); local 70 while (cbLeft) 152 cbLeft -= PAGE_SIZE;
|
/vbox/src/VBox/Runtime/r3/ |
H A D | isofs.cpp | 170 size_t cbLeft = pFile->pvd.path_table_size; local 172 while ((cbLeft > 0) && RT_SUCCESS(rc)) 178 cbLeft -= cbRead; 181 Assert(cbLeft >= header.length); 188 cbLeft -= cbRead; 198 cbLeft--; 320 size_t cbLeft = cbExtent; local 321 while (!RT_SUCCESS(rc) && cbLeft > 0) 327 cbLeft -= cbRead;
|
/vbox/src/VBox/Runtime/common/zip/ |
H A D | pkzip.cpp | 99 size_t cbLeft = pThis->cbBuf - off; 101 if (cbToRead > cbLeft) 105 cbToRead = (size_t)cbLeft;
|
H A D | gzipvfs.cpp | 460 size_t cbLeft = pThis->SgBuf.paSegs[0].cbSeg - cbWrittenOut; local 461 memmove(&pThis->abBuffer[0], &pThis->abBuffer[cbWrittenOut], cbLeft); 524 size_t cbLeft = pSgBuf->paSegs[0].cbSeg; local 525 if (cbLeft > 0) 528 size_t cbThis = cbLeft < ~(uInt)0 ? cbLeft : ~(uInt)0 / 2; 536 if (cbLeft == cbThis || rc != VINF_SUCCESS) 539 cbLeft -= cbThis;
|
/vbox/src/VBox/Devices/USB/ |
H A D | VUSBDevice.cpp | 650 #define COPY_DATA(pbDst, cbLeft, pvSrc, cbSrc) \ 653 uint32_t cbCopy = RT_MIN(cbLeft, cbSrc_); \ 655 cbLeft -= cbCopy; \ 656 if (!cbLeft) \ 666 uint32_t cbLeft = *pcbBuf; local 684 COPY_DATA(pbBuf, cbLeft, &StringDesc, sizeof(StringDesc)); 685 COPY_DATA(pbBuf, cbLeft, wsz, (uint32_t)cwc * sizeof(RTUTF16)); 688 *pcbBuf -= cbLeft; 698 uint32_t cbLeft = *pcbBuf; local 704 COPY_DATA(pbBuf, cbLeft, 720 uint32_t cbLeft = *pcbBuf; local 794 uint32_t cbLeft = *pcbBuf; local [all...] |
/vbox/src/VBox/Devices/Storage/ |
H A D | DrvDiskIntegrity.cpp | 304 size_t cbLeft = cbWrite; local 317 while (cbLeft) 329 || offCurr + (RTFOFF)cbLeft <= pSeg->Core.Key) 330 cbRange = cbLeft; 359 cbRange = RT_MIN(cbLeft, (size_t)(pSeg->Core.KeyLast + 1 - offCurr)); 396 cbLeft -= cbRange; 424 size_t cbLeft = cbRead; local 430 while (cbLeft) 444 cbRange = cbLeft; 446 else if (offCurr + (RTFOFF)cbLeft < 521 size_t cbLeft = paRanges[i].cbRange; local [all...] |
/vbox/src/VBox/VMM/VMMR3/ |
H A D | PATMR3Dbg.cpp | 98 static size_t patmR3DbgDescribePatchAsSymbol(PPATMPATCHREC pPatchRec, char *pszName, size_t cbLeft) argument 103 if (cbLeft >= sizeof(a_sz)) \ 107 cbLeft -= sizeof(a_sz) - 1;\ 112 size_t cch = RTStrPrintf(pszName, cbLeft, "Patch_%#08x", pPatchRec->patch.pPrivInstrGC); 113 cbLeft -= cch;
|
/vbox/src/VBox/Devices/Network/testcase/ |
H A D | tstIntNet-1.cpp | 97 ssize_t cbLeft = cbFrame - sizeof(*pEtherHdr); 113 if (!RTNetIPv4IsHdrValid(pIpHdr, cbLeft, cbLeft, !fGso /*fChecksum*/)) 116 cbLeft -= pIpHdr->ip_hl * 4; 117 AssertFatal(cbLeft >= 0); 131 if (!RTNetIPv4IsUDPValid(pIpHdr, pUdpHdr, pUdpHdr + 1, cbLeft, !fGso /*fChecksum*/)) 134 cbLeft -= sizeof(*pUdpHdr); 140 if (!RTNetIPv4IsDHCPValid(pUdpHdr, pDhcp, cbLeft, NULL)) 150 if (!RTNetIPv4IsTCPValid(pIpHdr, pTcpHdr, cbLeft, NULL, cbLeft, !fGs 330 size_t cbLeft = cbHdr; local [all...] |
/vbox/src/VBox/Runtime/common/checksum/ |
H A D | ipv4.cpp | 653 ssize_t cbLeft; local 690 cbLeft = (ssize_t)cbDhcp - RT_OFFSETOF(RTNETBOOTP, bp_vend.Dhcp.dhcp_cookie) + sizeof(pDhcp->bp_vend.Dhcp.dhcp_cookie); 691 if (cbLeft < 0) 695 if (cbLeft < 1) 708 while (cbLeft > 0) 720 cbLeft--; 728 if (cbLeft < 3) 756 cbLeft -= pOpt->dhcp_len + sizeof(*pOpt);
|
H A D | manifest3.cpp | 295 * @param cbLeft The number of bytes to take from the buffer. 297 static void rtManifestPtIos_UpdateHashes(PRTMANIFESTPTIOS pThis, PCRTSGBUF pSgBuf, size_t cbLeft) argument 302 if (cbSeg > cbLeft) 303 cbSeg = cbLeft; 305 cbLeft -= cbSeg; 306 if (!cbLeft)
|
/vbox/src/VBox/VMM/testcase/ |
H A D | tstCompressionBenchmark.cpp | 422 size_t cbLeft = g_cbComprAlloc; local 427 AssertBreakStmt(cbLeft > PAGE_SIZE * 4, aTests[j].rc = rc = VERR_BUFFER_OVERFLOW); 430 cbLeft -= sizeof(uint32_t); 435 pbDstPage, cbLeft, &cbDst); 443 cbLeft -= cbDst; 497 size_t cbLeft = g_cbCompr; local 504 cbLeft -= sizeof(uint32_t); 515 cbLeft -= cbSrc;
|
H A D | tstPDMAsyncCompletionStress.cpp | 162 size_t cbLeft = pTestTask->DataSeg.cbSeg; local 166 while (cbLeft) 174 cbCompare = RT_MIN(cbLeft, pSeg->cbSegment - offSeg); 194 cbLeft -= cbCompare; 201 size_t cbLeft = pTestTask->DataSeg.cbSeg; local 206 while (cbLeft) 214 cbFill = RT_MIN(cbLeft, pSeg->cbSegment - offSeg); 221 cbLeft -= cbFill;
|
/vbox/src/VBox/Runtime/common/asm/ |
H A D | asm-fake.cpp | 194 uint32_t cbLeft = PAGE_SIZE / sizeof(uintptr_t); local 195 while (cbLeft-- > 0) 202 uint32_t cbLeft = cb / sizeof(uint32_t); local 203 while (cbLeft-- > 0)
|
/vbox/src/VBox/Runtime/common/crypto/ |
H A D | x509-file.cpp | 69 if (pSectionHead->pNext || PrimaryCursor.Cursor.cbLeft)
|