pub fn calculate_block_position_and_size( total_size: usize, block_size: usize, block_index: usize, ) -> Result<(usize, usize)>
Compute the start position and size of a block inside a dimension.