| 246 | } |
| 247 | |
| 248 | static ObjectIndexEntry deserialiseEntry(Stream& stream) |
| 249 | { |
| 250 | ObjectIndexEntry entry{}; |
| 251 | // Header |
| 252 | entry._header = stream.readValue<ObjectHeader>(); |
| 253 | |
| 254 | // Filepath |
| 255 | entry._filepath = deserialiseString(stream); |
| 256 | |
| 257 | // Header2 |
| 258 | entry._header2.decodedFileSize = stream.readValue<uint32_t>(); |
| 259 | |
| 260 | // Name |
| 261 | entry._name = deserialiseString(stream); |
| 262 | |
| 263 | // Header3 |
| 264 | entry._displayData = stream.readValue<ObjectHeader3>(); |
| 265 | |
| 266 | // ObjectList1 |
| 267 | entry._alsoLoadObjects.resize(stream.readValue<uint32_t>()); |
| 268 | for (auto& alo : entry._alsoLoadObjects) |
| 269 | { |
| 270 | alo = stream.readValue<ObjectHeader>(); |
| 271 | } |
| 272 | |
| 273 | // ObjectList2 |
| 274 | entry._requiredObjects.resize(stream.readValue<uint32_t>()); |
| 275 | for (auto& ro : entry._requiredObjects) |
| 276 | { |
| 277 | ro = stream.readValue<ObjectHeader>(); |
| 278 | } |
| 279 | return entry; |
| 280 | } |
| 281 | |
| 282 | static ObjectFolderState deserialiseFolderState(Stream& stream) |
| 283 | { |
no test coverage detected