image::codecs::bmp::decoder

Function check_for_overflow

Source
fn check_for_overflow(
    width: i32,
    length: i32,
    channels: usize,
) -> ImageResult<()>
Expand description

Convenience function to check if the combination of width, length and number of channels would result in a buffer that would overflow.