unflutter/dart/dart.h

32 lines
469 B
C++

//
// Created by selim on 21.11.22.
//
#ifndef UNFLUTTER_DART_H
#define UNFLUTTER_DART_H
#include <cstdint>
#include <array>
const int32_t DART_MAGIC = 0xdcdcf5f5;
enum class SnaphotKind: uint64_t {
FULL,
FULL_JIT,
FULL_AOT,
MESSAGE,
NONE,
INVALID
};
#pragma pack (1)
struct SnapshotHeader {
uint32_t magic;
int64_t size;
SnaphotKind kind;
std::array<char8_t, 32> versionHash;
};
#pragma pack (0)
#endif //UNFLUTTER_DART_H