#include #include #include "gen_qarraydata.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" void* QArrayData_Data(QArrayData* self) { return self->data(); } const void* QArrayData_Data2(const QArrayData* self) { return (const void*) self->data(); } bool QArrayData_IsMutable(const QArrayData* self) { return self->isMutable(); } size_t QArrayData_DetachCapacity(const QArrayData* self, size_t newSize) { return self->detachCapacity(static_cast(newSize)); } int QArrayData_DetachFlags(const QArrayData* self) { QArrayData::AllocationOptions _ret = self->detachFlags(); return static_cast(_ret); } int QArrayData_CloneFlags(const QArrayData* self) { QArrayData::AllocationOptions _ret = self->cloneFlags(); return static_cast(_ret); } QArrayData* QArrayData_Allocate(size_t objectSize, size_t alignment, size_t capacity) { return QArrayData::allocate(static_cast(objectSize), static_cast(alignment), static_cast(capacity)); } QArrayData* QArrayData_ReallocateUnaligned(QArrayData* data, size_t objectSize, size_t newCapacity) { return QArrayData::reallocateUnaligned(data, static_cast(objectSize), static_cast(newCapacity)); } void QArrayData_Deallocate(QArrayData* data, size_t objectSize, size_t alignment) { QArrayData::deallocate(data, static_cast(objectSize), static_cast(alignment)); } QArrayData* QArrayData_SharedNull() { return QArrayData::sharedNull(); } QArrayData* QArrayData_Allocate4(size_t objectSize, size_t alignment, size_t capacity, int options) { return QArrayData::allocate(static_cast(objectSize), static_cast(alignment), static_cast(capacity), static_cast(options)); } QArrayData* QArrayData_ReallocateUnaligned4(QArrayData* data, size_t objectSize, size_t newCapacity, int newOptions) { return QArrayData::reallocateUnaligned(data, static_cast(objectSize), static_cast(newCapacity), static_cast(newOptions)); } void QArrayData_Delete(QArrayData* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }