pub fn buffer_size(self, frames: i32) -> i32 {
        // Check for overflow
        assert!(self.width.checked_mul(self.height).unwrap() < i32::MAX / (PIXEL_WIDTH * frames));
        self.width * self.height * PIXEL_WIDTH * frames
    }
/// Helper function to get the total buffer size we will need for all the frames.
Helper function to get the total buffer size we will need for all the frames.
Helper function to get the total buffer size we will need for all the frames .
pub fn buffer_size(self, frames: i32) -> i32 {
        // Check for overflow
        assert!(self.width.checked_mul(self.height).unwrap() < i32::MAX / (PIXEL_WIDTH * frames));
        self.width * self.height * PIXEL_WIDTH * frames
    }
pub fn buffer_size ( self , frames : i32 ) -> i32 { // Check for overflow assert ! ( self width checked_mul ( self height ) unwrap ( ) i32 MAX ( PIXEL_WIDTH frames ) ) ; self . width * self . height * PIXEL_WIDTH * frames }
Helper function to get the total buffer size we will need for all the frames.
Helper function to get the total buffer size we will need for all the frames .
self
frames
i32
self
frames
i32