2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_CBOR_GEN_QCBORSTREAMREADER_H
|
|
|
|
#define MIQT_QT_CBOR_GEN_QCBORSTREAMREADER_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-11-04 09:24:09 +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 QCborError;
|
|
|
|
class QCborStreamReader;
|
|
|
|
class QIODevice;
|
|
|
|
#else
|
|
|
|
typedef struct QCborError QCborError;
|
|
|
|
typedef struct QCborStreamReader QCborStreamReader;
|
|
|
|
typedef struct QIODevice QIODevice;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QCborStreamReader* QCborStreamReader_new();
|
|
|
|
QCborStreamReader* QCborStreamReader_new2(const char* data, ptrdiff_t lenVal);
|
|
|
|
QCborStreamReader* QCborStreamReader_new3(const unsigned char* data, ptrdiff_t lenVal);
|
|
|
|
QCborStreamReader* QCborStreamReader_new4(struct miqt_string data);
|
|
|
|
QCborStreamReader* QCborStreamReader_new5(QIODevice* device);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QCborStreamReader_SetDevice(QCborStreamReader* self, QIODevice* device);
|
2024-09-11 05:41:09 +00:00
|
|
|
QIODevice* QCborStreamReader_Device(const QCborStreamReader* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
void QCborStreamReader_AddData(QCborStreamReader* self, struct miqt_string data);
|
2024-10-11 05:43:04 +00:00
|
|
|
void QCborStreamReader_AddData2(QCborStreamReader* self, const char* data, ptrdiff_t lenVal);
|
|
|
|
void QCborStreamReader_AddData3(QCborStreamReader* self, const unsigned char* data, ptrdiff_t lenVal);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QCborStreamReader_Reparse(QCborStreamReader* self);
|
|
|
|
void QCborStreamReader_Clear(QCborStreamReader* self);
|
|
|
|
void QCborStreamReader_Reset(QCborStreamReader* self);
|
|
|
|
QCborError* QCborStreamReader_LastError(QCborStreamReader* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
long long QCborStreamReader_CurrentOffset(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsValid(const QCborStreamReader* self);
|
|
|
|
int QCborStreamReader_ContainerDepth(const QCborStreamReader* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
uint8_t QCborStreamReader_ParentContainerType(const QCborStreamReader* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QCborStreamReader_HasNext(const QCborStreamReader* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QCborStreamReader_Next(QCborStreamReader* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
uint8_t QCborStreamReader_Type(const QCborStreamReader* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QCborStreamReader_IsUnsignedInteger(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsNegativeInteger(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsInteger(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsByteArray(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsString(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsArray(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsMap(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsTag(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsSimpleType(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsFloat16(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsFloat(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsDouble(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsInvalid(const QCborStreamReader* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
bool QCborStreamReader_IsSimpleTypeWithSt(const QCborStreamReader* self, uint8_t st);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QCborStreamReader_IsFalse(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsTrue(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsBool(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsNull(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsUndefined(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsLengthKnown(const QCborStreamReader* self);
|
|
|
|
unsigned long long QCborStreamReader_Length(const QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_IsContainer(const QCborStreamReader* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QCborStreamReader_EnterContainer(QCborStreamReader* self);
|
|
|
|
bool QCborStreamReader_LeaveContainer(QCborStreamReader* self);
|
2024-10-11 05:43:04 +00:00
|
|
|
ptrdiff_t QCborStreamReader_CurrentStringChunkSize(const QCborStreamReader* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QCborStreamReader_ToBool(const QCborStreamReader* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
uint64_t QCborStreamReader_ToTag(const QCborStreamReader* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned long long QCborStreamReader_ToUnsignedInteger(const QCborStreamReader* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
uint64_t QCborStreamReader_ToNegativeInteger(const QCborStreamReader* self);
|
|
|
|
uint8_t QCborStreamReader_ToSimpleType(const QCborStreamReader* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
float QCborStreamReader_ToFloat(const QCborStreamReader* self);
|
|
|
|
double QCborStreamReader_ToDouble(const QCborStreamReader* self);
|
|
|
|
long long QCborStreamReader_ToInteger(const QCborStreamReader* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QCborStreamReader_Next1(QCborStreamReader* self, int maxRecursion);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QCborStreamReader_Delete(QCborStreamReader* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|