/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTMemSafer.cpp | 128 uint32_t cbNew = RTRandS32Ex(1, _16K + (i / 4) * _16K); local 129 RTTESTI_CHECK_RC_OK_RETV(RTMemSaferReallocZEx(cbAlloc, pvBuf, cbNew, &pvBuf, 0)); 131 RTTESTI_CHECK(ASMMemIsAll8(pvBuf, RT_MIN(cbAlloc, cbNew), chFiller) == NULL); 134 memset(pvBuf, chFiller, cbNew); 135 cbAlloc = cbNew;
|
H A D | tstMemAutoPtr.cpp | 116 void *tstMemAutoPtrAllocatorNoZero(void *pvOld, size_t cbNew, const char *pszTag) argument 118 void *pvNew = RTMemReallocTag(pvOld, cbNew, pszTag); 120 memset(pvNew, 0xfe, cbNew);
|
/vbox/src/VBox/Runtime/common/asn1/ |
H A D | asn1-default-allocator.cpp | 82 void *pvOld, void **ppvNew, size_t cbNew) 85 Assert(cbNew); 86 size_t cbAlloc = rtAsn1DefaultAllocator_AlignSize(cbNew); 81 rtAsn1DefaultAllocator_Realloc(PCRTASN1ALLOCATORVTABLE pThis, PRTASN1ALLOCATION pAllocation, void *pvOld, void **ppvNew, size_t cbNew) argument
|
H A D | asn1-efence-allocator.cpp | 63 void *pvOld, void **ppvNew, size_t cbNew) 66 Assert(cbNew); 67 void *pv = RTMemEfReallocNP(pvOld, cbNew, RTMEM_TAG); 71 pAllocation->cbAllocated = (uint32_t)cbNew; 62 rtAsn1EFenceAllocator_Realloc(PCRTASN1ALLOCATORVTABLE pThis, PRTASN1ALLOCATION pAllocation, void *pvOld, void **ppvNew, size_t cbNew) argument
|
/vbox/include/iprt/ |
H A D | vector.h | 333 DECLINLINE(void *) rtvecReallocDefTag(void *pv, size_t cbNew) argument 335 return RTMemRealloc(pv, cbNew);
|
/vbox/src/VBox/Main/src-all/ |
H A D | DisplayPNGUtil.cpp | 44 uint32_t cbNew = pCtx->cbPNG + (uint32_t)cb; local 45 AssertReturnVoidStmt(cbNew > pCtx->cbPNG && cbNew <= _1G, pCtx->rc = VERR_TOO_MUCH_DATA); 46 cbNew = RT_ALIGN_32(cbNew, 4096) + 4096; 48 void *pNew = RTMemRealloc(pCtx->pu8PNG, cbNew); 56 pCtx->cbAllocated = cbNew;
|
/vbox/src/VBox/Runtime/common/string/ |
H A D | stringalloc.cpp | 67 RTDECL(int) RTStrReallocTag(char **ppsz, size_t cbNew, const char *pszTag) argument 70 if (!cbNew) 77 char *pszNew = (char *)RTMemReallocTag(pszOld, cbNew, pszTag); 80 pszNew[cbNew - 1] = '\0'; 85 char *pszNew = (char *)RTMemAllocTag(cbNew, pszTag); 89 pszNew[cbNew - 1] = '\0';
|
/vbox/src/VBox/Additions/WINNT/VBoxTray/ |
H A D | VBoxClipboard.cpp | 301 uint32_t cbNew = 0; local 302 vboxrc = VbglR3ClipboardReadData(pCtx->u32ClientID, u32Format, pMem, cb, &cbNew); 303 LogFlowFunc(("VbglR3ClipboardReadData returned with rc = %Rrc, cb = %d, cbNew = %d\n", vboxrc, cb, cbNew)); 305 if (RT_SUCCESS (vboxrc) && cbNew <= cb) 307 cb = cbNew;
|
/vbox/src/VBox/Debugger/ |
H A D | VBoxDbgConsole.cpp | 530 size_t cbNew = RT_ALIGN_Z(cb + m_cbInputBufAlloc + 1, 128); local 531 void *pv = RTMemRealloc(m_pszInputBuf, cbNew); 538 m_cbInputBufAlloc = cbNew; 690 size_t cbNew = RT_ALIGN_Z(cbBuf + pThis->m_cbOutputBufAlloc + 1, 1024); local 691 void *pv = RTMemRealloc(pThis->m_pszOutputBuf, cbNew); 700 pThis->m_cbOutputBufAlloc = cbNew;
|
/vbox/src/VBox/VMM/VMMR3/ |
H A D | CPUMR3Db.cpp | 331 size_t cbNew = cNew * sizeof(**ppaMsrRanges); local 332 int rc = MMR3HyperRealloc(pVM, *ppaMsrRanges, cb, 32, MM_TAG_CPUM_MSRS, cbNew, &pvNew);
|
H A D | MMHyper.cpp | 1460 * @param cbNew The required size of the new block. 1468 VMMR3DECL(int) MMR3HyperRealloc(PVM pVM, void *pvOld, size_t cbOld, unsigned uAlignmentNew, MMTAG enmTagNew, size_t cbNew, argument 1472 return MMHyperAlloc(pVM, cbNew, uAlignmentNew, enmTagNew, ppv); 1474 if (!cbNew && pvOld) 1477 if (cbOld == cbNew) 1480 size_t cbData = RT_MIN(cbNew, cbOld); 1492 rc = MMHyperAlloc(pVM, cbNew, uAlignmentNew, enmTagNew, ppv); 1495 Assert(cbData <= cbNew);
|
/vbox/src/VBox/Runtime/r3/ |
H A D | alloc-ef.cpp | 346 static void *rtMemReplacementRealloc(void *pvOld, size_t cbNew) argument 354 size_t cbAligned = RTMEM_REPLACMENT_ALIGN(cbNew); 357 return g_pfnOrgRealloc(pvOld, cbNew); 359 return rtMemReplacementMalloc(cbNew); 782 RTDECL(void *) rtR3MemRealloc(const char *pszOp, RTMEMTYPE enmType, void *pvOld, size_t cbNew, argument 789 return rtR3MemAlloc(pszOp, enmType, cbNew, cbNew, pszTag, pvCaller, RT_SRC_POS_ARGS); 790 if (!cbNew) 804 void *pvRet = rtR3MemAlloc(pszOp, enmType, cbNew, cbNew, pszTa [all...] |
H A D | memsafer-r3.cpp | 484 static int rtMemSaferReallocSimpler(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) argument 487 int rc = RTMemSaferAllocZExTag(&pvNew, cbNew, fFlags, pszTag); 490 memcpy(pvNew, pvOld, RT_MIN(cbNew, cbOld)); 498 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW 502 if (cbNew && cbOld) 510 if (cbNew > cbOld) 516 if (cbNew <= cbMax) 518 size_t const cbAdded = (cbNew - cbOld); 550 RTMemWipeThoroughly(pbNew + cbNew, cbMove - cbAdded, 3); 559 pThis->cbUser = cbNew; [all...] |
/vbox/src/bldprogs/ |
H A D | scmsubversion.cpp | 116 size_t cbNew = *pcbAllocated ? *pcbAllocated * 2 : sizeof(szTmp) + 1; local 117 Assert(*poffCur + cbRead < cbNew); 118 rc2 = RTStrRealloc(ppszBuffer, cbNew); 126 *pcbAllocated = cbNew;
|
/vbox/src/VBox/Devices/USB/ |
H A D | VUSBSniffer.cpp | 283 uint32_t cbNew = pThis->cbBlockCur + cbAdditional; local 284 uint8_t *pbDataNew = (uint8_t *)RTMemRealloc(pThis->pbBlockData, cbNew); 291 pThis->cbBlockCur = cbNew; 292 pThis->cbBlockMax = cbNew;
|
/vbox/src/VBox/HostServices/SharedFolders/testcase/ |
H A D | tstSharedFolderService.cpp | 1038 const RTFOFF cbNew = 50000; local 1051 Info.cbObject = cbNew; 1057 RTTEST_CHECK_MSG(hTest, testRTFileSetSizeSize == cbNew,
|
/vbox/src/VBox/VMM/VMMAll/ |
H A D | IEMAll.cpp | 999 uint8_t cbNew = cbOldOpcodes - (uint8_t)offPrevOpcodes; local 1000 memmove(&pIemCpu->abOpcode[0], &pIemCpu->abOpcode[offPrevOpcodes], cbNew); 1001 pIemCpu->cbOpcode = cbNew;
|