blob: c3bb3f0eaa4396edc46c01763467722987249593 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef WASMBINARY_H
#define WASMBINARY_H
#include <QString>
#include <QList>
class WasmBinary
{
public:
enum class Type { INVALID, STATIC, SHARED };
WasmBinary(QString filepath);
Type type;
QList<QString> dependencies;
private:
bool parsePreambule(QByteArrayView data);
size_t getLeb(QByteArrayView data, size_t &offset);
QString getString(QByteArrayView data, size_t &offset);
};
#endif
|