You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
376 B
18 lines
376 B
#pragma once
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
namespace theo::comp {
|
|
class reloc_t {
|
|
public:
|
|
explicit reloc_t(std::uint16_t offset, std::size_t hash)
|
|
: m_offset(offset), m_hash(hash) {}
|
|
|
|
std::size_t hash() { return m_hash; }
|
|
std::uint16_t offset() { return m_offset; }
|
|
|
|
private:
|
|
std::size_t m_hash;
|
|
std::uint16_t m_offset;
|
|
};
|
|
} // namespace theo::comp
|