1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:17:45 +00:00

LibDNS: Use AllocatingMemoryStream in DNS package construction

This commit is contained in:
Tim Schumacher 2023-01-09 18:57:41 +01:00 committed by Andrew Kaster
parent 202175cf4c
commit 87c64834ca
8 changed files with 31 additions and 28 deletions

View file

@ -9,6 +9,7 @@
#include <AK/DeprecatedString.h>
#include <AK/Forward.h>
#include <LibCore/Stream.h>
namespace DNS {
@ -21,6 +22,7 @@ public:
size_t serialized_size() const;
DeprecatedString const& as_string() const { return m_name; }
ErrorOr<void> write_to_stream(Core::Stream::Stream&) const;
void randomize_case();
@ -36,8 +38,6 @@ private:
DeprecatedString m_name;
};
OutputStream& operator<<(OutputStream& stream, Name const&);
}
template<>