1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/llarp/dns/string.hpp
2018-12-15 16:21:52 +00:00

25 lines
417 B
C++

#ifndef LLARP_DNS_STRING_HPP
#define LLARP_DNS_STRING_HPP
#include <string>
struct llarp_buffer_t;
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
#endif