missed AddressRange change

This commit is contained in:
DH 2025-11-30 15:54:47 +03:00
parent 46f4de9bc4
commit 091349ca1e

View file

@ -1,5 +1,6 @@
#pragma once #pragma once
#include "Serializer.hpp"
#include <algorithm> #include <algorithm>
#include <cassert> #include <cassert>
#include <cstddef> #include <cstddef>
@ -64,5 +65,15 @@ public:
[[nodiscard]] constexpr std::size_t endAddress() const { return mEndAddress; } [[nodiscard]] constexpr std::size_t endAddress() const { return mEndAddress; }
constexpr bool operator==(const AddressRange &) const = default; constexpr bool operator==(const AddressRange &) const = default;
void serialize(rx::Serializer &s) const {
s.serialize(mBeginAddress);
s.serialize(mEndAddress);
}
void deserialize(rx::Deserializer &d) {
mBeginAddress = d.deserialize<std::uint64_t>();
mEndAddress = d.deserialize<std::uint64_t>();
}
}; };
} // namespace rx } // namespace rx