Lines Matching defs:ptr
39 MEM_PAGE_BASE_ALIGN = 4 /*!< Base alignment guarantee for mem page data ptr. */
442 void* ptr = deAlignedMalloc(numBytes, alignBytes);
444 if (!header || !ptr)
447 deAlignedFree(ptr);
451 header->memPtr = ptr;
455 return ptr;
501 void* ptr;
504 ptr = deMemPool_allocInternal(pool, numBytes, DE_POOL_DEFAULT_ALLOC_ALIGNMENT);
505 if (!ptr && pool->util)
507 return ptr;
519 void* ptr;
523 ptr = deMemPool_allocInternal(pool, numBytes, alignBytes);
524 DE_ASSERT(deIsAlignedPtr(ptr, alignBytes));
525 if (!ptr && pool->util)
527 return ptr;
533 * \param ptr Piece of memory to duplicate.
536 void* deMemPool_memDup (deMemPool* pool, const void* ptr, size_t numBytes)
540 memcpy(newPtr, ptr, numBytes);