29 lines
485 B
C++
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
|