2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QARRAYDATA_H
|
|
|
|
#define MIQT_QT_GEN_QARRAYDATA_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QArrayData;
|
|
|
|
#else
|
|
|
|
typedef struct QArrayData QArrayData;
|
|
|
|
#endif
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QArrayData_Data(QArrayData* self);
|
|
|
|
const void* QArrayData_Data2(const QArrayData* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QArrayData_IsMutable(const QArrayData* self);
|
|
|
|
size_t QArrayData_DetachCapacity(const QArrayData* self, size_t newSize);
|
|
|
|
int QArrayData_DetachFlags(const QArrayData* self);
|
|
|
|
int QArrayData_CloneFlags(const QArrayData* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
QArrayData* QArrayData_Allocate(size_t objectSize, size_t alignment, size_t capacity);
|
|
|
|
QArrayData* QArrayData_ReallocateUnaligned(QArrayData* data, size_t objectSize, size_t newCapacity);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QArrayData_Deallocate(QArrayData* data, size_t objectSize, size_t alignment);
|
|
|
|
QArrayData* QArrayData_SharedNull();
|
2024-08-29 07:01:51 +00:00
|
|
|
QArrayData* QArrayData_Allocate4(size_t objectSize, size_t alignment, size_t capacity, int options);
|
|
|
|
QArrayData* QArrayData_ReallocateUnaligned4(QArrayData* data, size_t objectSize, size_t newCapacity, int newOptions);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QArrayData_Delete(QArrayData* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|