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

Function serialize

dlib/sliding_buffer/circular_buffer.h:180–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 typename T
179 >
180 void serialize (
181 const circular_buffer<T>& item,
182 std::ostream& out
183 )
184 {
185 try
186 {
187 serialize(item.size(),out);
188 for (unsigned long i = 0; i < item.size(); ++i)
189 serialize(item[i],out);
190 }
191 catch (serialization_error& e)
192 {
193 throw serialization_error(e.info + "\n while serializing object of type circular_buffer");
194 }
195
196 }
197
198// ----------------------------------------------------------------------------------------
199

Callers

nothing calls this directly

Calls 2

serialization_errorClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected