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

Function deserialize

dlib/stl_checked/std_vector_c.h:306–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304
305 template <typename T, typename alloc>
306 void deserialize (
307 std_vector_c<T, alloc>& item,
308 std::istream& in
309 )
310 {
311 try
312 {
313 unsigned long size;
314 deserialize(size,in);
315 item.resize(size);
316 for (unsigned long i = 0; i < size; ++i)
317 deserialize(item[i],in);
318 }
319 catch (serialization_error& e)
320 { throw serialization_error(e.info + "\n while deserializing object of type std_vector_c"); }
321 }
322
323// ----------------------------------------------------------------------------------------
324

Callers

nothing calls this directly

Calls 2

serialization_errorClass · 0.85
resizeMethod · 0.45

Tested by

no test coverage detected