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

Function deserialize

dlib/sliding_buffer/circular_buffer.h:203–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 typename T
202 >
203 void deserialize (
204 circular_buffer<T>& item,
205 std::istream& in
206 )
207 {
208 try
209 {
210 unsigned long size;
211 deserialize(size,in);
212 item.resize(size);
213 for (unsigned long i = 0; i < size; ++i)
214 deserialize(item[i],in);
215 }
216 catch (serialization_error& e)
217 {
218 item.clear();
219 throw serialization_error(e.info + "\n while deserializing object of type circular_buffer");
220 }
221 }
222
223// ----------------------------------------------------------------------------------------
224

Callers

nothing calls this directly

Calls 3

serialization_errorClass · 0.85
resizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected