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

Function serialiseFolderState

src/OpenLoco/src/Objects/ObjectIndex.cpp:203–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 }
202
203 static void serialiseFolderState(Stream& stream, const ObjectFolderState& ofs)
204 {
205 stream.writeValue(ofs.numObjects);
206 stream.writeValue(ofs.totalFileSize);
207 stream.writeValue(ofs.dateHash);
208
209 stream.writeValue<uint32_t>(static_cast<uint32_t>(ofs.basePath.size()));
210 stream.write(ofs.basePath.data(), ofs.basePath.size());
211 }
212
213 static void serialiseHeader(Stream& stream, const IndexHeader& header)
214 {

Callers 1

serialiseHeaderFunction · 0.85

Calls 4

writeValueMethod · 0.80
sizeMethod · 0.45
writeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected