2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT6_GEN_QCRYPTOGRAPHICHASH_H
|
|
|
|
#define MIQT_QT6_GEN_QCRYPTOGRAPHICHASH_H
|
2024-10-20 05:21:03 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#include "../libmiqt/libmiqt.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QByteArrayView;
|
|
|
|
class QCryptographicHash;
|
|
|
|
class QIODevice;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArrayView QByteArrayView;
|
|
|
|
typedef struct QCryptographicHash QCryptographicHash;
|
|
|
|
typedef struct QIODevice QIODevice;
|
|
|
|
#endif
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QCryptographicHash_new(int method, QCryptographicHash** outptr_QCryptographicHash);
|
2024-10-20 05:21:03 +00:00
|
|
|
void QCryptographicHash_Reset(QCryptographicHash* self);
|
|
|
|
void QCryptographicHash_AddData(QCryptographicHash* self, const char* data, ptrdiff_t length);
|
|
|
|
void QCryptographicHash_AddDataWithData(QCryptographicHash* self, QByteArrayView* data);
|
|
|
|
bool QCryptographicHash_AddDataWithDevice(QCryptographicHash* self, QIODevice* device);
|
|
|
|
struct miqt_string QCryptographicHash_Result(const QCryptographicHash* self);
|
|
|
|
QByteArrayView* QCryptographicHash_ResultView(const QCryptographicHash* self);
|
|
|
|
struct miqt_string QCryptographicHash_Hash(QByteArrayView* data, int method);
|
|
|
|
int QCryptographicHash_HashLength(int method);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QCryptographicHash_Delete(QCryptographicHash* self, bool isSubclass);
|
2024-10-20 05:21:03 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|