net/AllocatedSocketAddress: add method GetSteadyPart()

This commit is contained in:
Max Kellermann 2023-08-29 20:55:09 +02:00 committed by Max Kellermann
parent 75aa08ed6b
commit 34ec024bf4
1 changed files with 5 additions and 0 deletions

View File

@ -183,6 +183,11 @@ public:
} }
#endif #endif
[[gnu::pure]]
std::span<const std::byte> GetSteadyPart() const noexcept {
return SocketAddress{*this}.GetSteadyPart();
}
private: private:
void SetSize(size_type new_size) noexcept; void SetSize(size_type new_size) noexcept;
}; };