#include #include #include #include "qmessageauthenticationcode.h" #include "gen_qmessageauthenticationcode.h" #include "_cgo_export.h" QMessageAuthenticationCode* QMessageAuthenticationCode_new(uintptr_t method) { return new QMessageAuthenticationCode(static_cast(method)); } QMessageAuthenticationCode* QMessageAuthenticationCode_new2(uintptr_t method, QByteArray* key) { return new QMessageAuthenticationCode(static_cast(method), *key); } void QMessageAuthenticationCode_Reset(QMessageAuthenticationCode* self) { self->reset(); } void QMessageAuthenticationCode_SetKey(QMessageAuthenticationCode* self, QByteArray* key) { self->setKey(*key); } void QMessageAuthenticationCode_AddData(QMessageAuthenticationCode* self, const char* data, int length) { self->addData(data, static_cast(length)); } void QMessageAuthenticationCode_AddDataWithData(QMessageAuthenticationCode* self, QByteArray* data) { self->addData(*data); } bool QMessageAuthenticationCode_AddDataWithDevice(QMessageAuthenticationCode* self, QIODevice* device) { return self->addData(device); } QByteArray* QMessageAuthenticationCode_Result(const QMessageAuthenticationCode* self) { return new QByteArray(self->result()); } QByteArray* QMessageAuthenticationCode_Hash(QByteArray* message, QByteArray* key, uintptr_t method) { return new QByteArray(QMessageAuthenticationCode::hash(*message, *key, static_cast(method))); } void QMessageAuthenticationCode_Delete(QMessageAuthenticationCode* self) { delete self; }