mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-19 09:25:28 +00:00
22 lines
456 B
C++
22 lines
456 B
C++
#pragma once
|
|
|
|
#include <llarp/util/buffer.hpp>
|
|
|
|
#include <oxenc/bt.h>
|
|
|
|
namespace llarp
|
|
{
|
|
/// abstract base class for serialized messages
|
|
struct AbstractSerializable
|
|
{
|
|
virtual std::string
|
|
bt_encode() const = 0;
|
|
virtual void
|
|
bt_encode(llarp_buffer& b) const = 0;
|
|
virtual void
|
|
bt_encode(oxenc::bt_dict_producer& btdp) const = 0;
|
|
virtual void
|
|
bt_encode(oxenc::bt_list_producer& btlp) const = 0;
|
|
};
|
|
} // namespace llarp
|