Lines Matching refs:pAllocator

80     AssertReturn(pAllocation->pAllocator != NULL, VERR_WRONG_ORDER);
94 return pAllocation->pAllocator->pfnAlloc(pAllocation->pAllocator, pAllocation, ppvArray, cNew * cbEntry);
113 int rc = pAllocation->pAllocator->pfnRealloc(pAllocation->pAllocator, pAllocation, pvOld, ppvArray, cbNew);
129 AssertReturn(pAllocation->pAllocator != NULL, VERR_WRONG_ORDER);
132 int rc = pAllocation->pAllocator->pfnAlloc(pAllocation->pAllocator, pAllocation, ppvMem, cbMem);
140 AssertReturn(pAllocation->pAllocator != NULL, VERR_WRONG_ORDER);
144 int rc = pAllocation->pAllocator->pfnAlloc(pAllocation->pAllocator, pAllocation, ppvMem, cbMem);
157 Assert(pAllocation->pAllocator != NULL);
160 pAllocation->pAllocator->pfnFree(pAllocation->pAllocator, pAllocation, pv);
166 RTDECL(PRTASN1ALLOCATION) RTAsn1MemInitAllocation(PRTASN1ALLOCATION pAllocation, PCRTASN1ALLOCATORVTABLE pAllocator)
171 pAllocation->pAllocator = pAllocator;
176 RTDECL(int) RTAsn1ContentAllocZ(PRTASN1CORE pAsn1Core, size_t cb, PCRTASN1ALLOCATORVTABLE pAllocator)
178 AssertReturn(pAllocator != NULL, VERR_WRONG_ORDER);
188 Allocation.pAllocator = pAllocator;
193 int rc = pAllocator->pfnAlloc(pAllocator, &Allocation, (void **)&pHdr, cbAlloc);
207 RTDECL(int) RTAsn1ContentDup(PRTASN1CORE pAsn1Core, void const *pvSrc, size_t cbSrc, PCRTASN1ALLOCATORVTABLE pAllocator)
209 int rc = RTAsn1ContentAllocZ(pAsn1Core, cbSrc, pAllocator);
216 RTDECL(int) RTAsn1ContentReallocZ(PRTASN1CORE pAsn1Core, size_t cb, PCRTASN1ALLOCATORVTABLE pAllocator)
229 return RTAsn1ContentAllocZ(pAsn1Core, cb, pAllocator);
237 if ( pHdr->Allocation.pAllocator == pAllocator
238 || !pAllocator)
246 int rc = Allocation.pAllocator->pfnRealloc(Allocation.pAllocator, &Allocation, pHdr, (void **)&pHdr, cbNeeded);
270 Allocation.pAllocator = pAllocator;
274 int rc = pAllocator->pfnAlloc(pAllocator, &Allocation, (void **)&pHdrNew, cbNeeded);
296 Allocation.pAllocator->pfnFree(Allocation.pAllocator, &Allocation, pHdr);
322 Allocation.pAllocator->pfnFree(Allocation.pAllocator, &Allocation, pHdr);
410 RTDECL(int) RTAsn1VtClone(PRTASN1CORE pThisCore, PRTASN1CORE pSrcCore, PCRTASN1ALLOCATORVTABLE pAllocator)
414 AssertPtrReturn(pAllocator, VERR_INVALID_POINTER);
420 return pSrcCore->pOps->pfnClone(pThisCore, pSrcCore, pAllocator);