Lines Matching defs:Allocation
62 RTASN1ALLOCATION Allocation;
184 RTASN1ALLOCATION Allocation;
185 Allocation.cbAllocated = 0;
186 Allocation.cReallocs = 0;
187 Allocation.uReserved0 = 0;
188 Allocation.pAllocator = pAllocator;
193 int rc = pAllocator->pfnAlloc(pAllocator, &Allocation, (void **)&pHdr, cbAlloc);
196 Assert(Allocation.cbAllocated >= cbAlloc);
197 pHdr->Allocation = Allocation;
237 if ( pHdr->Allocation.pAllocator == pAllocator
240 pHdr->Allocation.cReallocs++;
243 if (pHdr->Allocation.cbAllocated < cbNeeded)
245 RTASN1ALLOCATION Allocation = pHdr->Allocation;
246 int rc = Allocation.pAllocator->pfnRealloc(Allocation.pAllocator, &Allocation, pHdr, (void **)&pHdr, cbNeeded);
249 Assert(Allocation.cbAllocated >= cbNeeded);
251 pHdr->Allocation = Allocation;
266 RTASN1ALLOCATION Allocation;
267 Allocation.cbAllocated = 0;
268 Allocation.cReallocs = pHdr->Allocation.cReallocs + 1;
269 Allocation.uReserved0 = 0;
270 Allocation.pAllocator = pAllocator;
274 int rc = pAllocator->pfnAlloc(pAllocator, &Allocation, (void **)&pHdrNew, cbNeeded);
277 Assert(Allocation.cbAllocated >= cbNeeded);
289 pHdrNew->Allocation = Allocation;
295 Allocation = pHdr->Allocation;
296 Allocation.pAllocator->pfnFree(Allocation.pAllocator, &Allocation, pHdr);
297 Assert(Allocation.cbAllocated == 0);
320 RTASN1ALLOCATION Allocation = pHdr->Allocation;
322 Allocation.pAllocator->pfnFree(Allocation.pAllocator, &Allocation, pHdr);
323 Assert(Allocation.cbAllocated == 0);