From 091349ca1e780c45dc1c02e05051ed83dde29d1b Mon Sep 17 00:00:00 2001 From: DH Date: Sun, 30 Nov 2025 15:54:47 +0300 Subject: [PATCH] missed AddressRange change --- rx/include/rx/AddressRange.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rx/include/rx/AddressRange.hpp b/rx/include/rx/AddressRange.hpp index fc142a029..3cb910540 100644 --- a/rx/include/rx/AddressRange.hpp +++ b/rx/include/rx/AddressRange.hpp @@ -1,5 +1,6 @@ #pragma once +#include "Serializer.hpp" #include #include #include @@ -64,5 +65,15 @@ public: [[nodiscard]] constexpr std::size_t endAddress() const { return mEndAddress; } 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(); + mEndAddress = d.deserialize(); + } }; } // namespace rx