2017-05-20 02:57:51 +00:00
|
|
|
#ifndef INTEROP_H
|
|
|
|
#define INTEROP_H
|
|
|
|
|
2017-05-21 02:33:46 +00:00
|
|
|
#include "qbolt_cgo.h"
|
2017-05-20 02:57:51 +00:00
|
|
|
#include <QString>
|
2017-05-21 00:39:55 +00:00
|
|
|
#include <QList>
|
|
|
|
|
|
|
|
class GoSliceManagedWrapper {
|
|
|
|
Q_DISABLE_COPY(GoSliceManagedWrapper)
|
|
|
|
|
|
|
|
public:
|
2017-06-19 08:53:50 +00:00
|
|
|
GoSliceManagedWrapper(const QList<QByteArray>& qsl);
|
2017-05-21 01:47:46 +00:00
|
|
|
~GoSliceManagedWrapper();
|
2017-05-21 00:39:55 +00:00
|
|
|
protected:
|
|
|
|
QList<QByteArray> rawStrings;
|
|
|
|
public:
|
|
|
|
GoSlice slice;
|
2017-05-21 01:47:46 +00:00
|
|
|
GoString *strings;
|
2017-05-21 00:39:55 +00:00
|
|
|
};
|
2017-05-20 02:57:51 +00:00
|
|
|
|
|
|
|
class Interop
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Interop();
|
|
|
|
|
|
|
|
static GoString toGoString_WeakRef(QByteArray *qba);
|
|
|
|
|
|
|
|
static int64_t GetMagic();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INTEROP_H
|