Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qmalloc.h File Reference
#include <QtCore/qcompilerdetection.h>
#include <QtCore/qtconfigmacros.h>
#include <QtCore/qtcoreexports.h>
#include <cstddef>
+ Include dependency graph for qmalloc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE Q_CORE_EXPORT voidqMallocAligned (size_t size, size_t alignment) Q_ALLOC_SIZE(1)
 
Q_CORE_EXPORT voidqReallocAligned (void *ptr, size_t size, size_t oldsize, size_t alignment) Q_ALLOC_SIZE(2)
 
Q_CORE_EXPORT void qFreeAligned (void *ptr)
 

Function Documentation

◆ qFreeAligned()

Q_CORE_EXPORT void qFreeAligned ( void ptr)

Definition at line 71 of file qmalloc.cpp.

References ptr().

Referenced by QContiguousCacheData::freeData(), and qMapDeallocate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qMallocAligned()

QT_BEGIN_NAMESPACE Q_CORE_EXPORT void * qMallocAligned ( size_t  size,
size_t  alignment 
)

Definition at line 17 of file qmalloc.cpp.

References alignment, and qReallocAligned().

Referenced by QContiguousCacheData::allocateData(), and qMapAllocate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qReallocAligned()

Q_CORE_EXPORT void * qReallocAligned ( void ptr,
size_t  size,
size_t  oldsize,
size_t  alignment 
)

Definition at line 22 of file qmalloc.cpp.

References alignment, oldsize, and qMin().

Referenced by qMallocAligned().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: