2024-08-25 04:08:24 +00:00
|
|
|
#include <QArrayData>
|
2024-08-29 07:01:51 +00:00
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QtPrivate__QContainerImplHelper
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qarraydata.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qarraydata.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QArrayData_Data(QArrayData* self) {
|
|
|
|
return self->data();
|
|
|
|
}
|
|
|
|
|
|
|
|
const void* QArrayData_Data2(const QArrayData* self) {
|
|
|
|
return (const void*) self->data();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QArrayData_IsMutable(const QArrayData* self) {
|
|
|
|
return self->isMutable();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
size_t QArrayData_DetachCapacity(const QArrayData* self, size_t newSize) {
|
|
|
|
return self->detachCapacity(static_cast<size_t>(newSize));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QArrayData_DetachFlags(const QArrayData* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QArrayData::AllocationOptions _ret = self->detachFlags();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QArrayData_CloneFlags(const QArrayData* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QArrayData::AllocationOptions _ret = self->cloneFlags();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QArrayData* QArrayData_Allocate(size_t objectSize, size_t alignment, size_t capacity) {
|
|
|
|
return QArrayData::allocate(static_cast<size_t>(objectSize), static_cast<size_t>(alignment), static_cast<size_t>(capacity));
|
|
|
|
}
|
|
|
|
|
|
|
|
QArrayData* QArrayData_ReallocateUnaligned(QArrayData* data, size_t objectSize, size_t newCapacity) {
|
|
|
|
return QArrayData::reallocateUnaligned(data, static_cast<size_t>(objectSize), static_cast<size_t>(newCapacity));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QArrayData_Deallocate(QArrayData* data, size_t objectSize, size_t alignment) {
|
|
|
|
QArrayData::deallocate(data, static_cast<size_t>(objectSize), static_cast<size_t>(alignment));
|
|
|
|
}
|
|
|
|
|
|
|
|
QArrayData* QArrayData_SharedNull() {
|
|
|
|
return QArrayData::sharedNull();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QArrayData* QArrayData_Allocate4(size_t objectSize, size_t alignment, size_t capacity, int options) {
|
|
|
|
return QArrayData::allocate(static_cast<size_t>(objectSize), static_cast<size_t>(alignment), static_cast<size_t>(capacity), static_cast<QArrayData::AllocationOptions>(options));
|
|
|
|
}
|
|
|
|
|
|
|
|
QArrayData* QArrayData_ReallocateUnaligned4(QArrayData* data, size_t objectSize, size_t newCapacity, int newOptions) {
|
|
|
|
return QArrayData::reallocateUnaligned(data, static_cast<size_t>(objectSize), static_cast<size_t>(newCapacity), static_cast<QArrayData::AllocationOptions>(newOptions));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QArrayData_Delete(QArrayData* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QtPrivate__QContainerImplHelper_Mid(int originalLength, int* position, int* length) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QtPrivate::QContainerImplHelper::CutResult _ret = QtPrivate::QContainerImplHelper::mid(static_cast<int>(originalLength), static_cast<int*>(position), static_cast<int*>(length));
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QtPrivate__QContainerImplHelper_Delete(QtPrivate__QContainerImplHelper* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|