calculate_padding
- asdf.util.calculate_padding(content_size, pad_blocks, block_size)[source]
Calculates the amount of extra space to add to a block given the user’s request for the amount of extra space. Care is given so that the total of size of the block with padding is evenly divisible by block size.
- Parameters:
- Returns:
- nbytesint
The number of extra bytes to add for padding.