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:
parent
202175cf4c
commit
87c64834ca
8 changed files with 31 additions and 28 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue