Searched refs:cbMemory (Results 1 - 6 of 6) sorted by relevance

/vbox/include/iprt/
H A Dheap.h50 * @param cbMemory The size of the heap memory.
52 RTDECL(int) RTHeapSimpleInit(PRTHEAPSIMPLE pHeap, void *pvMemory, size_t cbMemory);
213 * @param cbMemory The size of the heap memory.
215 RTDECL(int) RTHeapOffsetInit(PRTHEAPOFFSET phHeap, void *pvMemory, size_t cbMemory);
/vbox/src/VBox/Runtime/common/alloc/
H A Dheapoffset.cpp363 RTDECL(int) RTHeapOffsetInit(PRTHEAPOFFSET phHeap, void *pvMemory, size_t cbMemory) argument
372 AssertReturn(cbMemory >= PAGE_SIZE, VERR_INVALID_PARAMETER);
373 AssertReturn(cbMemory < UINT32_MAX, VERR_INVALID_PARAMETER);
375 AssertReturn((uintptr_t)pvMemory + (cbMemory - 1) > (uintptr_t)cbMemory, VERR_INVALID_PARAMETER);
385 cbMemory -= off;
388 cbMemory &= ~(RTHEAPOFFSET_ALIGNMENT - 1);
393 pHeapInt->cbHeap = (uint32_t)cbMemory;
394 pHeapInt->cbFree = (uint32_t)cbMemory
H A Dheapsimple.cpp280 RTDECL(int) RTHeapSimpleInit(PRTHEAPSIMPLE phHeap, void *pvMemory, size_t cbMemory) argument
289 AssertReturn(cbMemory >= PAGE_SIZE, VERR_INVALID_PARAMETER);
291 AssertReturn((uintptr_t)pvMemory + (cbMemory - 1) > (uintptr_t)cbMemory, VERR_INVALID_PARAMETER);
301 cbMemory -= off;
304 cbMemory &= ~(RTHEAPSIMPLE_ALIGNMENT - 1);
309 pHeapInt->pvEnd = (uint8_t *)pHeapInt + cbMemory;
310 pHeapInt->cbHeap = cbMemory;
311 pHeapInt->cbFree = cbMemory
/vbox/src/VBox/Additions/common/VBoxGuest/
H A DVBoxGuest-haiku-stubs.c420 int RTHeapOffsetInit(PRTHEAPOFFSET phHeap, void *pvMemory, size_t cbMemory) argument
422 return g_VBoxGuest->_RTHeapOffsetInit(phHeap, pvMemory, cbMemory);
424 int RTHeapSimpleInit(PRTHEAPSIMPLE pHeap, void *pvMemory, size_t cbMemory) argument
426 return g_VBoxGuest->_RTHeapSimpleInit(pHeap, pvMemory, cbMemory);
H A DVBoxGuest-haiku.h204 int (*_RTHeapOffsetInit)(PRTHEAPOFFSET phHeap, void *pvMemory, size_t cbMemory);
205 int (*_RTHeapSimpleInit)(PRTHEAPSIMPLE pHeap, void *pvMemory, size_t cbMemory);
/vbox/src/VBox/HostDrivers/Support/win/
H A DSUPHardenedVerifyProcess-win.cpp383 uint32_t const cbMemory = sizeof(pThis->abMemory) + sizeof(pThis->abFile); local
388 uint32_t cbThis = RT_MIN(cb, cbMemory);

Completed in 61 milliseconds