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
qcontiguouscache.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qcontiguouscache.h"
5#ifdef QT_QCONTIGUOUSCACHE_DEBUG
6#include <QDebug>
7#endif
8
9#include <QtCore/qmalloc.h>
10
12
13#ifdef QT_QCONTIGUOUSCACHE_DEBUG
14void QContiguousCacheData::dump() const
15{
16 qDebug() << "capacity:" << alloc;
17 qDebug() << "count:" << count;
18 qDebug() << "start:" << start;
19 qDebug() << "offset:" << offset;
20}
21#endif
22
27
32
uint alignment
Combined button and popup list for selecting options.
#define qDebug
[1]
Definition qlogging.h:164
void qFreeAligned(void *ptr)
Definition qmalloc.cpp:71
QT_BEGIN_NAMESPACE void * qMallocAligned(size_t size, size_t alignment)
Definition qmalloc.cpp:17
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
ptrdiff_t qsizetype
Definition qtypes.h:165
static QContiguousCacheData * allocateData(qsizetype size, qsizetype alignment)
static void freeData(QContiguousCacheData *data)