void read(png_struct *png, png_byte *data, png_size_t size)
{
Msp::IO::Base *in = reinterpret_cast<Msp::IO::Base *>(png_get_io_ptr(png));
in->read(reinterpret_cast<char *>(data), size);
}
void read(png_struct *png, png_byte *data, png_size_t size)
{
Msp::IO::Base *in = reinterpret_cast<Msp::IO::Base *>(png_get_io_ptr(png));
in->read(reinterpret_cast<char *>(data), size);
}