fn update_files_size(file_size: u64, prev_count: u32, curr_count: u32) {
        FilesSize::mutate(|size| {
            *size = size.saturating_sub((file_size * (prev_count as u64)) as u128).saturating_add((file_size * (curr_count as u64)) as u128);
        });
    }
/// Update the first class storage's size
Update the first class storage's size
Update the first class storage ' s size
fn update_files_size(file_size: u64, prev_count: u32, curr_count: u32) {
        FilesSize::mutate(|size| {
            *size = size.saturating_sub((file_size * (prev_count as u64)) as u128).saturating_add((file_size * (curr_count as u64)) as u128);
        });
    }
fn update_files_size ( file_size : u64 , prev_count : u32 , curr_count : u32 ) { FilesSize :: mutate ( | size | { * size = size . saturating_sub ( ( file_size * ( prev_count as u64 ) ) as u128 ) . saturating_add ( ( file_size * ( curr_count as u64 ) ) as u128 ) ; } ) ; }
Update the first class storage's size
Update the first class storage ' s size
file_size
u64
prev_count
u32
curr_count
u32