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

Method proxy_deserialize

dlib/serialize.h:2344–2353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2342 {
2343 public:
2344 explicit proxy_deserialize (
2345 const std::string& filename_
2346 ) : filename(filename_),
2347 fin_optional_owning_ptr(new std::ifstream(filename.c_str(), std::ios::binary)),
2348 fin(*fin_optional_owning_ptr)
2349 {
2350 if (!fin)
2351 throw serialization_error("Unable to open " + filename + " for reading.");
2352 init();
2353 }
2354
2355 explicit proxy_deserialize (
2356 std::vector<char>& buf

Callers

nothing calls this directly

Calls 2

serialization_errorClass · 0.85
initFunction · 0.85

Tested by

no test coverage detected