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

Method writeStream

src/OpenLoco/src/S5/SawyerStream.cpp:231–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231void SawyerStreamWriter::writeStream(const void* data, size_t dataLen)
232{
233 try
234 {
235 _stream.write(data, dataLen);
236 }
237 catch (...)
238 {
239 throw Exception::RuntimeError(exceptionWriteError);
240 }
241}
242
243std::span<const std::byte> SawyerStreamWriter::encode(SawyerEncoding encoding, std::span<const std::byte> data)
244{

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected