Function exr::meta::calculate_block_size

source ยท
pub fn calculate_block_size(
    total_size: usize,
    block_size: usize,
    block_position: usize,
) -> Result<usize>
Expand description

Calculate the size of a single block. If this is the last block, this only returns the required size, which is always smaller than the default block size.