| 101 | } |
| 102 | |
| 103 | struct Write { |
| 104 | const std::string content_; |
| 105 | io::IO *out_; |
| 106 | TSVConn vconnection_; |
| 107 | |
| 108 | ~Write() |
| 109 | { |
| 110 | if (out_ != nullptr) { |
| 111 | delete out_; |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | Write(std::string &&s) : content_(std::move(s)), out_(nullptr), vconnection_(nullptr) {} |
| 116 | static int handle(TSCont, TSEvent, void *); |
| 117 | }; |
| 118 | |
| 119 | void write(const std::string &, std::string &&); |
| 120 |
no outgoing calls
no test coverage detected