MCPcopy Create free account
hub / github.com/acl-dev/acl / save_to

Method save_to

lib_acl_cpp/src/http/http_mime.cpp:234–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234bool http_mime::save_to(const char *file_path) {
235 fstream fp;
236 if (!fp.open_trunc(file_path)) {
237 logger_error("open %s failed(%s)", file_path, last_serror());
238 return false;
239 }
240 return save_to(fp);
241}
242
243bool http_mime::save_to(ostream &out) {
244 std::string bound("--");

Callers 11

test_buildFunction · 0.45
build_htmlFunction · 0.45
build_plainFunction · 0.45
build_alternativeFunction · 0.45
build_relativeFunction · 0.45
build_mixed_relativeFunction · 0.45
build_mixed_relative2Function · 0.45
build_mixedFunction · 0.45
build_mixed_htmlFunction · 0.45
build_mixed_plainFunction · 0.45
uploadMethod · 0.45

Calls 9

save_toFunction · 0.85
beginMethod · 0.80
last_serrorFunction · 0.50
open_truncMethod · 0.45
endMethod · 0.45
writeMethod · 0.45
c_strMethod · 0.45
sizeMethod · 0.45
appendMethod · 0.45

Tested by 1

test_buildFunction · 0.36