Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qmalloc.h File Reference

(9d1e9285129b4c65c978c806bb839798ace61a60)

#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: