2024-10-20 05:21:03 +00:00
|
|
|
#include <QContiguousCacheData>
|
|
|
|
#include <qcontiguouscache.h>
|
|
|
|
#include "gen_qcontiguouscache.h"
|
2024-12-11 06:55:47 +00:00
|
|
|
|
|
|
|
#ifndef _Bool
|
|
|
|
#define _Bool bool
|
|
|
|
#endif
|
2024-10-20 05:21:03 +00:00
|
|
|
#include "_cgo_export.h"
|
|
|
|
|
|
|
|
QContiguousCacheData* QContiguousCacheData_AllocateData(ptrdiff_t size, ptrdiff_t alignment) {
|
|
|
|
return QContiguousCacheData::allocateData((qsizetype)(size), (qsizetype)(alignment));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QContiguousCacheData_FreeData(QContiguousCacheData* data) {
|
|
|
|
QContiguousCacheData::freeData(data);
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QContiguousCacheData_Delete(QContiguousCacheData* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QContiguousCacheData*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|