2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QBUFFER_H
|
|
|
|
#define GEN_QBUFFER_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#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();
|
|
|
|
QBuffer* QBuffer_new2(QByteArray* buf);
|
|
|
|
QBuffer* QBuffer_new3(QObject* parent);
|
|
|
|
QBuffer* QBuffer_new4(QByteArray* buf, QObject* parent);
|
|
|
|
QMetaObject* QBuffer_MetaObject(QBuffer* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QBuffer_Tr(const char* s, char** _out, int* _out_Strlen);
|
|
|
|
void QBuffer_TrUtf8(const char* s, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
QByteArray* QBuffer_Buffer(QBuffer* self);
|
|
|
|
QByteArray* QBuffer_Buffer2(QBuffer* self);
|
|
|
|
void QBuffer_SetBuffer(QBuffer* self, QByteArray* a);
|
|
|
|
void QBuffer_SetData(QBuffer* self, QByteArray* data);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QBuffer_SetData2(QBuffer* self, const char* data, int lenVal);
|
2024-08-25 04:08:24 +00:00
|
|
|
QByteArray* QBuffer_Data(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-08-29 07:01:51 +00:00
|
|
|
long long QBuffer_Size(QBuffer* self);
|
|
|
|
long long QBuffer_Pos(QBuffer* self);
|
|
|
|
bool QBuffer_Seek(QBuffer* self, long long off);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QBuffer_AtEnd(QBuffer* self);
|
|
|
|
bool QBuffer_CanReadLine(QBuffer* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QBuffer_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QBuffer_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
|
|
|
void QBuffer_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QBuffer_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QBuffer_Delete(QBuffer* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|