| 192 | typename T |
| 193 | > |
| 194 | void deserialize ( |
| 195 | sliding_buffer_kernel_1<T>& item, |
| 196 | std::istream& in |
| 197 | ) |
| 198 | { |
| 199 | try |
| 200 | { |
| 201 | item.clear(); |
| 202 | unsigned long size; |
| 203 | deserialize(size,in); |
| 204 | if (size > 0) |
| 205 | { |
| 206 | int count = 0; |
| 207 | while (size != 1) |
| 208 | { |
| 209 | size /= 2; |
| 210 | ++count; |
| 211 | } |
| 212 | item.set_size(count); |
| 213 | |
| 214 | for (unsigned long i = 0; i < item.size(); ++i) |
| 215 | deserialize(item[i],in); |
| 216 | } |
| 217 | } |
| 218 | catch (serialization_error& e) |
| 219 | { |
| 220 | item.clear(); |
| 221 | throw serialization_error(e.info + "\n while deserializing object of type sliding_buffer_kernel_1"); |
| 222 | } |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | #endif // DLIB_SLIDING_BUFFER_KERNEl_1_ |
nothing calls this directly
no test coverage detected