unflutter/dart/Leb128Int.h
Selim Mustafaev 5ec1117337 Fix building on macOS.
Adding LEB128 reader class.
2022-11-28 20:46:19 +03:00

29 lines
485 B
C++

//
// Created by Selim Mustafaev on 28.11.2022.
//
#ifndef UNFLUTTER_LEB128INT_H
#define UNFLUTTER_LEB128INT_H
#include <cstdint>
#include <cstdio>
#include <cstddef>
namespace Dart {
class Leb128Int {
private:
uint64_t _value;
size_t _size;
public:
Leb128Int();
explicit Leb128Int(const std::byte* ptr);
[[nodiscard]] uint64_t value() const;
[[nodiscard]] size_t size() const;
};
}
#endif //UNFLUTTER_LEB128INT_H