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

Method proxy_serialize

dlib/serialize.h:2293–2300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2291 {
2292 public:
2293 explicit proxy_serialize (
2294 const std::string& filename
2295 ) : fout_optional_owning_ptr(new std::ofstream(filename.c_str(), std::ios::binary)),
2296 fout(*fout_optional_owning_ptr)
2297 {
2298 if (!fout)
2299 throw serialization_error("Unable to open " + filename + " for writing.");
2300 }
2301
2302 explicit proxy_serialize (
2303 std::vector<char>& buf

Callers

nothing calls this directly

Calls 1

serialization_errorClass · 0.85

Tested by

no test coverage detected