MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / pngReadStream

Function pngReadStream

olcPixelGameEngine.h:6551–6555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6549namespace olc
6550{
6551 void pngReadStream(png_structp pngPtr, png_bytep data, png_size_t length)
6552 {
6553 png_voidp a = png_get_io_ptr(pngPtr);
6554 ((std::istream*)a)->read((char*)data, length);
6555 }
6556
6557 class ImageLoader_LibPNG : public olc::ImageLoader
6558 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected