2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QBUFFER_H
|
|
|
|
#define MIQT_QT_GEN_QBUFFER_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 QBuffer;
|
|
|
|
class QByteArray;
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
#else
|
|
|
|
typedef struct QBuffer QBuffer;
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QBuffer* QBuffer_new();
|
2024-10-18 23:53:33 +00:00
|
|
|
QBuffer* QBuffer_new2(QObject* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QBuffer_MetaObject(const QBuffer* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QBuffer_Metacast(QBuffer* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QBuffer_Tr(const char* s);
|
|
|
|
struct miqt_string QBuffer_TrUtf8(const char* s);
|
|
|
|
struct miqt_string QBuffer_Buffer(QBuffer* self);
|
|
|
|
struct miqt_string QBuffer_Buffer2(const QBuffer* self);
|
|
|
|
void QBuffer_SetData(QBuffer* self, struct miqt_string data);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QBuffer_SetData2(QBuffer* self, const char* data, int lenVal);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QBuffer_Data(const QBuffer* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QBuffer_Open(QBuffer* self, int openMode);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QBuffer_Close(QBuffer* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
long long QBuffer_Size(const QBuffer* self);
|
|
|
|
long long QBuffer_Pos(const QBuffer* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QBuffer_Seek(QBuffer* self, long long off);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QBuffer_AtEnd(const QBuffer* self);
|
|
|
|
bool QBuffer_CanReadLine(const QBuffer* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QBuffer_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QBuffer_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QBuffer_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QBuffer_TrUtf83(const char* s, const char* c, int n);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QBuffer_Delete(QBuffer* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|