| 555 | } |
| 556 | |
| 557 | ByteArray WorldStorage::writeUniqueIndexStore(UniqueIndexStore const& store) { |
| 558 | return compressData(DataStreamBuffer::serializeMapContainer(store, |
| 559 | [](DataStream& ds, String const& key, SectorAndPosition const& value) { |
| 560 | ds.write(key); |
| 561 | ds.cwrite<uint16_t>(value.first[0]); |
| 562 | ds.cwrite<uint16_t>(value.first[1]); |
| 563 | ds.write(value.second); |
| 564 | })); |
| 565 | } |
| 566 | |
| 567 | ByteArray WorldStorage::sectorUniqueKey(Sector const& sector) { |
| 568 | DataStreamBuffer ds(5); |
nothing calls this directly
no test coverage detected