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

Function serialize

dlib/array/array_kernel.h:240–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 typename mem_manager
239 >
240 void serialize (
241 const array<T,mem_manager>& item,
242 std::ostream& out
243 )
244 {
245 try
246 {
247 serialize(item.max_size(),out);
248 serialize(item.size(),out);
249
250 for (size_t i = 0; i < item.size(); ++i)
251 serialize(item[i],out);
252 }
253 catch (serialization_error& e)
254 {
255 throw serialization_error(e.info + "\n while serializing object of type array");
256 }
257 }
258
259 template <
260 typename T,

Callers

nothing calls this directly

Calls 3

serialization_errorClass · 0.85
max_sizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected