unflutter/dart/dart.h
2022-11-26 10:56:17 +03:00

31 lines
456 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
};
struct SnapshotHeader {
uint32_t magic;
uint32_t size;
uint32_t size2;
SnaphotKind kind;
std::array<char8_t, 32> versionHash;
};
#endif //UNFLUTTER_DART_H