77class ByteBufferConvertible
80 ByteBufferConvertible() :
83 ByteBufferConvertible(std::unique_ptr<convertible::byte_buffer> ptr) :
84 m_wrapper(std::move(ptr)) {}
87 ByteBufferConvertible(T&& t) :
90 ByteBufferConvertible(
const ByteBufferConvertible&);
91 ByteBufferConvertible& operator=(
const ByteBufferConvertible&);
93 ByteBufferConvertible(ByteBufferConvertible&& other) =
default;
94 ByteBufferConvertible& operator=(ByteBufferConvertible&& other) =
default;
96 void convert(ByteBuffer& destination)
const { m_wrapper->convert(destination); }
97 std::size_t size()
const {
return m_wrapper->size(); }
103 std::unique_ptr<convertible::byte_buffer> m_wrapper;