lokinet/llarp/dns/string.hpp

23 lines
364 B
C++
Raw Normal View History

#pragma once
2018-12-03 22:22:59 +00:00
#include <string>
2018-12-15 16:21:52 +00:00
struct llarp_buffer_t;
2018-12-03 22:22:59 +00:00
namespace llarp
{
namespace 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 dns
} // namespace llarp