| 260 | |
| 261 | template<typename TSerializer, typename TValue> |
| 262 | void BulkSerializeItem(TSerializer& serializer, Array<TValue>& array) |
| 263 | { |
| 264 | uint64 numElements = array.Size(); |
| 265 | SerializeItem(serializer, numElements); |
| 266 | if(array.Size() != numElements) |
| 267 | array.Init(numElements); |
| 268 | |
| 269 | if(numElements == 0) |
| 270 | return; |
| 271 | |
| 272 | BulkSerializeArray(serializer, array.Data(), numElements); |
| 273 | } |
| 274 | |
| 275 | // Convenience functions for file serialization |
| 276 | template<typename T> |
no test coverage detected