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

Method write

src/OpenLoco/src/S5/SawyerStream.cpp:216–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void SawyerStreamWriter::write(const void* data, size_t dataLen)
217{
218 writeStream(data, dataLen);
219 auto data8 = reinterpret_cast<const uint8_t*>(data);
220 for (size_t i = 0; i < dataLen; i++)
221 {
222 _checksum += data8[i];
223 }
224}
225
226void SawyerStreamWriter::writeChecksum()
227{

Callers 12

uncompressFileFunction · 0.45
pngWriteDataFunction · 0.45
decodeRunLengthSingleMethod · 0.45
decodeRunLengthMultiMethod · 0.45
writeStreamMethod · 0.45
encodeRunLengthSingleMethod · 0.45
saveIndexFunction · 0.45
serialiseEntryFunction · 0.45
serialiseFolderStateFunction · 0.45
writePackedObjectsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected