mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-19 09:25:28 +00:00
20 lines
318 B
C++
20 lines
318 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
struct llarp_buffer_t;
|
|
|
|
namespace llarp::dns
|
|
{
|
|
using name_t = std::string;
|
|
|
|
/// decode name from buffer
|
|
bool
|
|
decode_name(llarp_buffer_t* buf, name_t& name);
|
|
|
|
/// encode name to buffer
|
|
bool
|
|
encode_name(llarp_buffer_t* buf, const name_t& name);
|
|
|
|
} // namespace llarp::dns
|