// // Created by Gyuhwan Park on 2022/04/30. // #ifndef ULALACA_XRDPSTREAM_HPP #define ULALACA_XRDPSTREAM_HPP #include #include extern "C" { #include "arch.h" #include "parse.h" #include "os_calls.h" #include "defines.h" }; class XrdpStream { public: using Stream = stream; using StreamDeleter = std::function; XrdpStream(size_t size); explicit operator Stream const *() const; template XrdpStream &operator<< (T value); private: std::unique_ptr _stream; }; #endif //ULALACA_XRDPSTREAM_HPP