tail_padding_for_len

Function tail_padding_for_len 

Source
pub fn tail_padding_for_len(total_len: usize) -> usize
Expand description

Returns the number of padding bytes in the final share for a blob’s raw data of total_len bytes.

Layout:

  • First share carries up to FIRST_SPARSE_SHARE_CONTENT_SIZE data bytes
  • Each continuation share carries up to CONTINUATION_SPARSE_SHARE_CONTENT_SIZE data bytes