PxAlignedAllocator

Defined in include/foundation/PxAlignedMalloc.h

Inheritance Relationships

Base Type

template<uint32_t N, typename BaseAllocator = PxAllocator>
class PxAlignedAllocator : public PxAllocator

Allocator, which is used to access the global PxAllocatorCallback instance (used for dynamic data types template instantiation), which can align memory.

Allocate aligned memory. Alignment must be a power of 2! &#8212; should be templated by a base allocator

Public Functions

inline PxAlignedAllocator(const BaseAllocator &base = BaseAllocator())
inline void *allocate(size_t size, const char *file, int line)
inline void deallocate(void *ptr)