MCPcopy Create free account
hub / github.com/davisking/dlib / send

Method send

dlib/matlab/subprocess_stream.h:154–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152
153 template <typename U, typename ...T>
154 void send(U&& arg1, T&& ...args)
155 /*!
156 ensures
157 - sends all the arguments to send() to the subprocess by serializing them
158 with interprocess_serialize().
159 !*/
160 {
161 interprocess_serialize(arg1, iosub);
162 send(std::forward<T>(args)...);
163 if (!iosub)
164 {
165 std::ostringstream sout;
166 sout << stderr.rdbuf();
167 throw dlib::error("Error sending object to child process.\n" + sout.str());
168 }
169 }
170 void send() {iosub.flush();}
171
172 template <typename U, typename ...T>

Callers

nothing calls this directly

Calls 4

interprocess_serializeFunction · 0.85
errorClass · 0.85
strMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected