Lines Matching refs:numBytes
426 DE_INLINE void* deMemPool_allocInternal (deMemPool* pool, size_t numBytes, deUint32 alignBytes) in deMemPool_allocInternal() argument
442 void* ptr = deAlignedMalloc(numBytes, alignBytes); in deMemPool_allocInternal()
466 if (numBytes + alignPadding > (size_t)(curPage->capacity - curPage->bytesAllocated)) in deMemPool_allocInternal()
470 …int newPageCapacity = deMax32(deMin32(2*curPage->capacity, MAX_PAGE_SIZE), ((int)numBytes)+maxAl… in deMemPool_allocInternal()
485 DE_ASSERT(numBytes + alignPadding <= (size_t)curPage->capacity); in deMemPool_allocInternal()
488 curPage->bytesAllocated += (int)(numBytes + alignPadding); in deMemPool_allocInternal()
499 void* deMemPool_alloc (deMemPool* pool, size_t numBytes) in deMemPool_alloc() argument
503 DE_ASSERT(numBytes > 0); in deMemPool_alloc()
504 ptr = deMemPool_allocInternal(pool, numBytes, DE_POOL_DEFAULT_ALLOC_ALIGNMENT); in deMemPool_alloc()
517 void* deMemPool_alignedAlloc (deMemPool* pool, size_t numBytes, deUint32 alignBytes) in deMemPool_alignedAlloc() argument
521 DE_ASSERT(numBytes > 0); in deMemPool_alignedAlloc()
523 ptr = deMemPool_allocInternal(pool, numBytes, alignBytes); in deMemPool_alignedAlloc()
536 void* deMemPool_memDup (deMemPool* pool, const void* ptr, size_t numBytes) in deMemPool_memDup() argument
538 void* newPtr = deMemPool_alloc(pool, numBytes); in deMemPool_memDup()
540 memcpy(newPtr, ptr, numBytes); in deMemPool_memDup()