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

Function pngWriteData

src/OpenLoco/src/Ui/Screenshot.cpp:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 static void pngWriteData(png_structp png_ptr, png_bytep data, png_size_t length)
70 {
71 auto ostream = static_cast<std::ostream*>(png_get_io_ptr(png_ptr));
72 ostream->write((const char*)data, length);
73 }
74
75 static void pngFlush(png_structp png_ptr)
76 {

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected