qbolt/qbolt/interop.h

32 lines
517 B
C
Raw Normal View History

#ifndef INTEROP_H
#define INTEROP_H
2017-05-21 02:33:46 +00:00
#include "qbolt_cgo.h"
#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);
~GoSliceManagedWrapper();
2017-05-21 00:39:55 +00:00
protected:
QList<QByteArray> rawStrings;
public:
GoSlice slice;
GoString *strings;
2017-05-21 00:39:55 +00:00
};
class Interop
{
public:
Interop();
static GoString toGoString_WeakRef(QByteArray *qba);
static int64_t GetMagic();
};
#endif // INTEROP_H