#ifndef INSTR_H #define INSTR_H #include "types.h" #include #include struct WasmInstr { quint32 address; QString instr; static int parse(FILE *f, WasmInstr &instr, QString &error, bool *end = nullptr); static int parse(FILE *f, varuint32 maxlen, QVector &instr, QString &error); bool operator==(const WasmInstr &other) const { return address == other.address && instr == other.instr; } }; #endif