1
0
mirror of synced 2024-12-20 19:45:55 +01:00
ImHex/lib/libimhex/include/hex/providers/overlay.hpp

24 lines
485 B
C++
Raw Normal View History

#pragma once
#include <hex.hpp>
#include <vector>
namespace hex::prv {
class Overlay {
public:
Overlay() = default;
2023-12-19 13:10:25 +01:00
void setAddress(u64 address) { m_address = address; }
[[nodiscard]] u64 getAddress() const { return m_address; }
2023-12-19 13:10:25 +01:00
[[nodiscard]] u64 getSize() const { return m_data.size(); }
[[nodiscard]] std::vector<u8> &getData() { return m_data; }
private:
u64 m_address = 0;
std::vector<u8> m_data;
};
}