Telnet++  3.1.0.2
A C++ library for interacting with Telnet streams
encoder.hpp
1 #pragma once
2 
3 #include "telnetpp/options/msdp/variable.hpp"
4 
5 namespace telnetpp::options::msdp::detail {
6 
7 //* =========================================================================
9 //* =========================================================================
10 TELNETPP_EXPORT
11 void encode_variable(
13  telnetpp::byte_storage &storage);
14 
15 //* =========================================================================
17 //* =========================================================================
18 template <typename Continuation>
19 void encode(telnetpp::options::msdp::variable const &vbl, Continuation &&cont)
20 {
21  telnetpp::byte_storage storage;
22  encode_variable(vbl, storage);
23  cont(storage);
24 }
25 
26 } // namespace telnetpp::options::msdp::detail
A structure that represents a named value.
Definition: variable.hpp:32