Because there's no format that'd have more than 256-byte pixels anyway,
the theoretically biggest one would be RGBA64F or some such with 32
bytes. Nevertheless, an assert is now in place to verify the bounds as
well as ensuring the pixel size is not zero.
CORRADE_ASSERT(Implementation::imageDataSize(*this)<=_data.size(),"Image: data too small, got"<<_data.size()<<"but expected at least"<<Implementation::imageDataSize(*this)<<"bytes",);
CORRADE_ASSERT(Implementation::imageDataSize(*this)<=_data.size(),"Image: data too small, got"<<_data.size()<<"but expected at least"<<Implementation::imageDataSize(*this)<<"bytes",);
CORRADE_ASSERT(Implementation::imageDataSize(*this)<=_data.size(),"ImageView: data too small, got"<<_data.size()<<"but expected at least"<<Implementation::imageDataSize(*this)<<"bytes",);
CORRADE_ASSERT(Implementation::imageDataSize(*this)<=_data.size(),"ImageView: data too small, got"<<_data.size()<<"but expected at least"<<Implementation::imageDataSize(*this)<<"bytes",);
CORRADE_ASSERT(Magnum::Implementation::imageDataSize(*this)<=_data.size(),"Trade::ImageData: data too small, got"<<_data.size()<<"but expected at least"<<Magnum::Implementation::imageDataSize(*this)<<"bytes",);
CORRADE_ASSERT(Magnum::Implementation::imageDataSize(*this)<=_data.size(),"Trade::ImageData: data too small, got"<<_data.size()<<"but expected at least"<<Magnum::Implementation::imageDataSize(*this)<<"bytes",);