Searched defs:cch (Results 26 - 50 of 135) sorted by relevance

123456

/vbox/src/VBox/Runtime/r3/win/
H A DldrNative-win.cpp62 size_t cch = strlen(pszFilename); local
63 char *psz = (char *)alloca(cch + sizeof(".DLL"));
66 memcpy(psz, pszFilename, cch);
67 memcpy(psz + cch, ".DLL", sizeof(".DLL"));
/vbox/src/bldprogs/
H A Dscmstream.h45 size_t cch; member in struct:SCMSTREAMLINE
/vbox/src/libs/kStuff/iprt/
H A DkHlpString-iprt.cpp130 int kHlpStrNComp(const char *psz1, const char *psz2, KSIZE cch) argument
132 return strncmp(psz1, psz2, cch);
/vbox/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib/
H A DVBoxDebugLib.c51 UINTN cch; local
59 cch = AsciiVSPrint(szBuf, sizeof(szBuf), Format, va);
63 if (cch >= sizeof(szBuf))
64 cch = sizeof(szBuf) - 1;
65 while (cch > 0 && (szBuf[cch - 1] == '\n' || szBuf[cch - 1] == '\r'))
66 cch--;
67 szBuf[cch] = '\0';
/vbox/src/VBox/Devices/Storage/
H A DDebug.cpp948 size_t cch = 0; local
961 cch = RTStrPrintf(pszBuffer, cchBuffer, "BUFE=%d LS_V=%d TestWrite=%d WriteType=%s\n",
966 pszBuffer += cch;
967 cchBuffer -= cch;
980 cch = RTStrPrintf(pszBuffer, cchBuffer, "MultiSession=%s FP=%d Copy=%d TrackMode=%d\n",
985 pszBuffer += cch;
986 cchBuffer -= cch;
1005 cch = RTStrPrintf(pszBuffer, cchBuffer, "DataBlockType=%d (%s)\n",
1008 pszBuffer += cch;
1009 cchBuffer -= cch;
1061 size_t cch = 0; local
1111 size_t cch = 0; local
[all...]
/vbox/src/VBox/Disassembler/testcase/
H A DtstDisasm-1.cpp66 size_t cch = strlen(szOutput); local
67 RTTESTI_CHECK(szOutput[cch - 1] != ',');
/vbox/src/VBox/Runtime/testcase/
H A DtstRTStrCache.cpp91 uint32_t cch = RTRandAdvU32Ex(hRand, 3, sizeof(szBuf) - 1); local
92 RTRandAdvBytes(hRand, szBuf, cch);
93 szBuf[cch] = '\0';
94 for (uint32_t off = 0; off < cch; off++)
104 apszTests[i] = (char *)RTMemDup(szBuf, cch + 1);
106 cbStrings += cch + 1;
H A DtstNoCrt-1.cpp145 if (cch != (expect)) \
147 RTPrintf("tstNoCrt-1(%d): cb=%zu expected=%zu\n", __LINE__, cch, (expect)); \
151 size_t cch; local
477 cch = RT_NOCRT(strlen)(""); CHECK_CCH(0);
478 cch = RT_NOCRT(strlen)("1"); CHECK_CCH(1);
479 cch = RT_NOCRT(strlen)("12"); CHECK_CCH(2);
480 cch = RT_NOCRT(strlen)("123"); CHECK_CCH(3);
481 cch = RT_NOCRT(strlen)("1234"); CHECK_CCH(4);
482 cch = RT_NOCRT(strlen)("12345"); CHECK_CCH(5);
483 cch
[all...]
H A DtstRTPath.cpp262 size_t cch = strlen(szPath); local
263 RTTESTI_CHECK_RC(RTPathTemp(szPath, cch), VERR_BUFFER_OVERFLOW);
264 RTTESTI_CHECK_RC(RTPathTemp(szPath, cch+1), VINF_SUCCESS);
265 RTTESTI_CHECK_RC(RTPathTemp(szPath, cch+2), VINF_SUCCESS);
367 cch = strlen(szTmp);
368 if (cch + strlen(s_aRTPathAbsExTests[i].pcszOutput) - 2 <= sizeof(szTmp))
369 strcpy(szTmp + cch, s_aRTPathAbsExTests[i].pcszOutput + 2);
611 cch = RTPathStripTrailingSlash(szPath);
619 RTTESTI_CHECK(cch == strlen(szPath));
H A DtstRTStrFormat.cpp54 size_t cch = pfnOutput(pvArgOutput, pszType, 5); local
55 cch += pfnOutput(pvArgOutput, "=", 1);
58 cch += pfnOutput(pvArgOutput, szNum, cchNum);
59 return cch;
70 size_t cch = RTStrPrintf(szBuf, sizeof(szBuf), "%N", pszFormat, &va); local
77 else if (cch != cchExpect)
79 iLine, cch, cchExpect);
82 cch = RTStrPrintf(szBuf, sizeof(szBuf), "%uxxx%Nyyy%u", 43, pszFormat, &va, 43);
91 else if (cch != 5 + cchExpect + 5)
93 iLine, cch,
114 size_t cch = RTStrPrintf(pszBuf, BUF_SIZE, "u32=%d u64=%lld u64=%#llx", u32, u64, u64); local
[all...]
/vbox/src/VBox/Runtime/common/misc/
H A Dassert.cpp207 size_t cch; local
215 cch = RTStrPrintfV(g_szRTAssertMsg2, sizeof(g_szRTAssertMsg2), pszFormat, vaCopy);
216 ASMAtomicWriteU32(&g_cchRTAssertMsg2, (uint32_t)cch);
221 cch = ASMAtomicReadU32(&g_cchRTAssertMsg2);
222 if (cch < sizeof(g_szRTAssertMsg2) - 4)
225 cch += RTStrPrintfV(&g_szRTAssertMsg2[cch], sizeof(g_szRTAssertMsg2) - cch, pszFormat, vaCopy);
226 ASMAtomicWriteU32(&g_cchRTAssertMsg2, (uint32_t)cch);
/vbox/src/VBox/Additions/WINNT/VBoxHook/
H A DVBoxHook.cpp211 size_t cch = vsprintf(s_uBuf.Req.szString, pszFormat, va); local
214 s_uBuf.Req.header.size += (uint32_t)cch;
/vbox/src/VBox/Additions/common/VBoxControl/testcase/
H A DtstVBoxControl.cpp203 VBGLR3DECL(int) VbglR3WriteLog(const char *pch, size_t cch) argument
205 NOREF(pch); NOREF(cch);
/vbox/src/VBox/Runtime/common/string/
H A Dbase64.cpp416 uint64_t cch = cbData * (uint64_t)8; local
417 while (cch % 24)
418 cch += 8;
419 cch /= 6;
421 cch += ((cch - 1) / RTBASE64_LINE_LEN) * RTBASE64_EOL_SIZE;
422 return cch;
425 size_t cch = cbData * 8; local
426 while (cch % 24)
427 cch
[all...]
H A Dstrformattype.cpp183 size_t cch = RT_MIN(cchType, pType->cchType); local
184 int iDiff = memcmp(pszType, pType->szType, cch);
421 size_t cch;
463 cch = pfnHandler(pfnOutput, pvArgOutput, g_aTypes[i].szType, pvValue, cchWidth, cchPrecision, fFlags, pvUser);
469 cch = pfnOutput(pvArgOutput, RT_STR_TUPLE("<missing:%R["));
470 cch += pfnOutput(pvArgOutput, pszType, pszTypeEnd - pszType);
471 cch += pfnOutput(pvArgOutput, RT_STR_TUPLE("]>"));
474 return cch;
H A Dstringalloc.cpp109 size_t cch = strlen(pszString) + 1; local
110 char *psz = (char *)RTMemAllocTag(cch, pszTag);
112 memcpy(psz, pszString, cch);
125 size_t cch = strlen(pszString) + 1; local
126 char *psz = (char *)RTMemAllocTag(cch, pszTag);
129 memcpy(psz, pszString, cch);
144 size_t cch = pszEnd ? (uintptr_t)pszEnd - (uintptr_t)pszString : cchMax; local
145 char *pszDst = (char *)RTMemAllocTag(cch + 1, pszTag);
148 memcpy(pszDst, pszString, cch);
149 pszDst[cch]
206 size_t cch; member in struct:RTStrAAppendExNVStruct
215 size_t cch = va_arg(va, size_t); local
[all...]
H A Dutf-16-latin-1.cpp47 * @param pcch Where to store the length (excluding '\\0') of the Latin1 string. (cch == cb, btw)
52 size_t cch = 0; local
59 ++cch;
100 *pcch = cch;
113 * @param cch The size of the Latin1 buffer, excluding the terminator.
115 static int rtUtf16RecodeAsLatin1(PCRTUTF16 pwsz, size_t cwc, char *psz, size_t cch) argument
126 if (RT_UNLIKELY(cch < 1))
132 cch--;
192 size_t cch; local
193 int rc = rtUtf16CalcLatin1Length(pwszString, RTSTR_MAX, &cch);
219 RTUtf16ToLatin1ExTag(PCRTUTF16 pwszString, size_t cwcString, char **ppsz, size_t cch, size_t *pcch, const char *pszTag) argument
279 size_t cch; local
288 size_t cch; local
308 rtLatin1CalcUtf16Length(const char *psz, size_t cch, size_t *pcwc) argument
328 rtLatin1RecodeAsUtf16(const char *psz, size_t cch, PRTUTF16 pwsz, size_t cwc) argument
470 RTLatin1CalcUtf16LenEx(const char *psz, size_t cch, size_t *pcwc) argument
[all...]
/vbox/src/VBox/Runtime/r3/
H A Dtesti.cpp45 int cch = RTTestPrintfV(NIL_RTTEST, enmLevel, pszFormat, va); local
47 return cch;
61 int cch = RTTestSubV(NIL_RTTEST, pszSubTestFmt, va); local
63 return cch;
89 int cch = RTTestPassedV(NIL_RTTEST, pszFormat, va); local
91 return cch;
139 int cch = RTTestFailedV(NIL_RTTEST, pszFormat, va); local
141 return cch;
172 int cch = RTTestFailureDetailsV(NIL_RTTEST, pszFormat, va); local
174 return cch;
[all...]
/vbox/src/VBox/VMM/VMMR3/
H A DPATMR3Dbg.cpp112 size_t cch = RTStrPrintf(pszName, cbLeft, "Patch_%#08x", pPatchRec->patch.pPrivInstrGC); local
113 cbLeft -= cch;
114 pszName += cch;
H A DDBGFOS.cpp429 size_t cch = strlen(pUVM->dbgf.s.pCurOS->pReg->szName); local
430 if (cchName > cch)
431 memcpy(pszName, pUVM->dbgf.s.pCurOS->pReg->szName, cch + 1);
/vbox/src/VBox/Main/src-server/freebsd/
H A DHostHardwareFreeBSD.cpp62 size_t cch = 0; local
65 cch = i;
66 return cch + 1;
/vbox/src/VBox/Runtime/tools/
H A DRTGzip.cpp331 size_t cch = strlen(pOpts->szOutput); local
332 if ( cch <= cchSuff
333 || strcmp(&pOpts->szOutput[cch - cchSuff], pOpts->pszSuff))
335 pOpts->szOutput[cch - cchSuff] = '\0';
/vbox/src/VBox/Runtime/common/asn1/
H A Dasn1-dump.cpp90 uint32_t cch = RT_MIN(cchLeft, sizeof(s_szSpaces) - 1); local
91 rtAsn1DumpPrintf(pData, &s_szSpaces[sizeof(s_szSpaces) - 1 - cch]);
92 cchLeft -= cch;
137 uint32_t cch = pAsn1Core->cb; local
147 if (cch == 0 || !pch)
151 if (cch >= 48)
162 while ( cch > 0
166 cch--, pch++;
170 while ( cch > 0
176 cch
[all...]
/vbox/src/VBox/Runtime/common/checksum/
H A Dmanifest.cpp290 size_t cch = rtManifestIndexOfCharInBuf(pcBuf, cbSize - cbRead, '\n') + 1;
293 if ( ( cch == 1
295 || ( cch == 2
299 pcBuf += cch;
300 cbRead += cch;
325 pcBuf += cch;
326 cbRead += cch;
360 size_t cch = rtManifestIndexOfCharInBuf(pcBuf, cbSize - cbRead, '\n') + 1; local
363 if ( ( cch == 1
365 || ( cch
571 size_t cch = RTStrPrintf(pszTmp, cbMaxSize + 1, "%s (%s)= %s\\n", pcszDigestType, RTPathFilename(paFiles[i].pszTestFile), paFiles[i].pszTestDigest); local
[all...]
/vbox/src/VBox/Additions/WINNT/SharedFolders/driver/
H A Dinfo.c115 ULONG ParsedPathSize, cch; local
136 cch = 0;
141 cch += DirectoryName->Length / sizeof(WCHAR);
144 ParsedPath->String.ucs2[cch] = L'\\';
145 cch++;
148 RtlCopyMemory (&ParsedPath->String.ucs2[cch], Template->Buffer, Template->Length);
149 cch += Template->Length / sizeof(WCHAR);
152 ParsedPath->String.ucs2[cch] = 0;
154 /* cch is the number of chars without trailing nul. */
155 ParsedPath->u16Length = (uint16_t)(cch * sizeo
[all...]

Completed in 123 milliseconds

123456