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.cpp File Reference

(48aa320569dd0167bb3fe330a69cfd87978f975c)

#include "qmalloc.h"
#include "qplatformdefs.h"
#include <stdlib.h>
#include <string.h>
+ Include dependency graph for qmalloc.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE voidqMallocAligned (size_t size, size_t alignment)
 
voidqReallocAligned (void *oldptr, size_t newsize, size_t oldsize, size_t alignment)
 
void qFreeAligned (void *ptr)
 

Function Documentation

◆ qFreeAligned()

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 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()

void * qReallocAligned ( void * oldptr,
size_t newsize,
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: