#include #include #include #include #include #include "gen_qdatastream.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" QDataStream* QDataStream_new() { return new QDataStream(); } QDataStream* QDataStream_new2(QIODevice* param1) { return new QDataStream(param1); } QDataStream* QDataStream_new3(struct miqt_string param1) { QByteArray param1_QByteArray(param1.data, param1.len); return new QDataStream(param1_QByteArray); } void QDataStream_virtbase(QDataStream* src, QIODeviceBase** outptr_QIODeviceBase) { *outptr_QIODeviceBase = static_cast(src); } QIODevice* QDataStream_Device(const QDataStream* self) { return self->device(); } void QDataStream_SetDevice(QDataStream* self, QIODevice* device) { self->setDevice(device); } bool QDataStream_AtEnd(const QDataStream* self) { return self->atEnd(); } int QDataStream_Status(const QDataStream* self) { QDataStream::Status _ret = self->status(); return static_cast(_ret); } void QDataStream_SetStatus(QDataStream* self, int status) { self->setStatus(static_cast(status)); } void QDataStream_ResetStatus(QDataStream* self) { self->resetStatus(); } int QDataStream_FloatingPointPrecision(const QDataStream* self) { QDataStream::FloatingPointPrecision _ret = self->floatingPointPrecision(); return static_cast(_ret); } void QDataStream_SetFloatingPointPrecision(QDataStream* self, int precision) { self->setFloatingPointPrecision(static_cast(precision)); } int QDataStream_ByteOrder(const QDataStream* self) { QDataStream::ByteOrder _ret = self->byteOrder(); return static_cast(_ret); } void QDataStream_SetByteOrder(QDataStream* self, int byteOrder) { self->setByteOrder(static_cast(byteOrder)); } int QDataStream_Version(const QDataStream* self) { return self->version(); } void QDataStream_SetVersion(QDataStream* self, int version) { self->setVersion(static_cast(version)); } void QDataStream_OperatorShiftRight(QDataStream* self, char* i) { self->operator>>(static_cast(*i)); } void QDataStream_OperatorShiftRightWithQint8(QDataStream* self, signed char* i) { self->operator>>(static_cast(*i)); } void QDataStream_OperatorShiftRightWithQuint8(QDataStream* self, unsigned char* i) { self->operator>>(static_cast(*i)); } void QDataStream_OperatorShiftRightWithQint16(QDataStream* self, int16_t* i) { self->operator>>(static_cast(*i)); } void QDataStream_OperatorShiftRightWithQuint16(QDataStream* self, uint16_t* i) { self->operator>>(static_cast(*i)); } void QDataStream_OperatorShiftRightWithQint32(QDataStream* self, int* i) { self->operator>>(static_cast(*i)); } void QDataStream_OperatorShiftRightWithQuint32(QDataStream* self, unsigned int* i) { self->operator>>(static_cast(*i)); } void QDataStream_OperatorShiftRightWithQint64(QDataStream* self, long long* i) { self->operator>>(static_cast(*i)); } void QDataStream_OperatorShiftRightWithQuint64(QDataStream* self, unsigned long long* i) { self->operator>>(static_cast(*i)); } void QDataStream_OperatorShiftRightWithBool(QDataStream* self, bool* i) { self->operator>>(*i); } void QDataStream_OperatorShiftRightWithFloat(QDataStream* self, float* f) { self->operator>>(static_cast(*f)); } void QDataStream_OperatorShiftRightWithDouble(QDataStream* self, double* f) { self->operator>>(static_cast(*f)); } void QDataStream_OperatorShiftRightWithStr(QDataStream* self, char* str) { self->operator>>(str); } void QDataStream_OperatorShiftLeft(QDataStream* self, char i) { self->operator<<(static_cast(i)); } void QDataStream_OperatorShiftLeftWithQint8(QDataStream* self, signed char i) { self->operator<<(static_cast(i)); } void QDataStream_OperatorShiftLeftWithQuint8(QDataStream* self, unsigned char i) { self->operator<<(static_cast(i)); } void QDataStream_OperatorShiftLeftWithQint16(QDataStream* self, int16_t i) { self->operator<<(static_cast(i)); } void QDataStream_OperatorShiftLeftWithQuint16(QDataStream* self, uint16_t i) { self->operator<<(static_cast(i)); } void QDataStream_OperatorShiftLeftWithQint32(QDataStream* self, int i) { self->operator<<(static_cast(i)); } void QDataStream_OperatorShiftLeftWithQuint32(QDataStream* self, unsigned int i) { self->operator<<(static_cast(i)); } void QDataStream_OperatorShiftLeftWithQint64(QDataStream* self, long long i) { self->operator<<(static_cast(i)); } void QDataStream_OperatorShiftLeftWithQuint64(QDataStream* self, unsigned long long i) { self->operator<<(static_cast(i)); } void QDataStream_OperatorShiftLeftWithBool(QDataStream* self, bool i) { self->operator<<(i); } void QDataStream_OperatorShiftLeftWithFloat(QDataStream* self, float f) { self->operator<<(static_cast(f)); } void QDataStream_OperatorShiftLeftWithDouble(QDataStream* self, double f) { self->operator<<(static_cast(f)); } void QDataStream_OperatorShiftLeftWithStr(QDataStream* self, const char* str) { self->operator<<(str); } QDataStream* QDataStream_ReadBytes(QDataStream* self, char* param1, unsigned int* lenVal) { QDataStream& _ret = self->readBytes(param1, static_cast(*lenVal)); // Cast returned reference into pointer return &_ret; } int QDataStream_ReadRawData(QDataStream* self, char* param1, int lenVal) { return self->readRawData(param1, static_cast(lenVal)); } void QDataStream_WriteBytes(QDataStream* self, const char* param1, unsigned int lenVal) { self->writeBytes(param1, static_cast(lenVal)); } int QDataStream_WriteRawData(QDataStream* self, const char* param1, int lenVal) { return self->writeRawData(param1, static_cast(lenVal)); } int QDataStream_SkipRawData(QDataStream* self, int lenVal) { return self->skipRawData(static_cast(lenVal)); } void QDataStream_StartTransaction(QDataStream* self) { self->startTransaction(); } bool QDataStream_CommitTransaction(QDataStream* self) { return self->commitTransaction(); } void QDataStream_RollbackTransaction(QDataStream* self) { self->rollbackTransaction(); } void QDataStream_AbortTransaction(QDataStream* self) { self->abortTransaction(); } bool QDataStream_IsDeviceTransactionStarted(const QDataStream* self) { return self->isDeviceTransactionStarted(); } void QDataStream_Delete(QDataStream* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }