MCPcopy Create free account
hub / github.com/Siv3D/OpenSiv3D / PngWriteCallbackIWriter

Function PngWriteCallbackIWriter

Siv3D/src/Siv3D/ImageFormat/PNG/PNGEncoder.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace s3d
24{
25 static void PngWriteCallbackIWriter(png_structp png_ptr, png_bytep src, png_size_t length)
26 {
27 IWriter* pWriter = static_cast<IWriter*>(::png_get_io_ptr(png_ptr));
28
29 pWriter->write(src, length);
30 }
31
32 static void PngWriteCallbackBlob(png_structp png_ptr, png_bytep src, png_size_t length)
33 {

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected