MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / serialiseIndex

Function serialiseIndex

src/OpenLoco/src/Objects/ObjectIndex.cpp:225–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223 }
224
225 static void serialiseIndex(Stream& stream, const IndexHeader& header, const std::vector<ObjectIndexEntry>& entries)
226 {
227 serialiseHeader(stream, header);
228 stream.writeValue<uint32_t>(static_cast<uint32_t>(entries.size()));
229 for (auto& entry : entries)
230 {
231 serialiseEntry(stream, entry);
232 }
233 }
234
235 static std::string deserialiseString(Stream& stream)
236 {

Callers 1

saveIndexFunction · 0.85

Calls 3

serialiseHeaderFunction · 0.85
serialiseEntryFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected