1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +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

@ -25,7 +25,7 @@ public:
Packet() = default;
static Optional<Packet> from_raw_packet(u8 const*, size_t);
ByteBuffer to_byte_buffer() const;
ErrorOr<ByteBuffer> to_byte_buffer() const;
bool is_query() const { return !m_query_or_response; }
bool is_response() const { return m_query_or_response; }