recode

Function recode 

Source
pub fn recode(
    fragments: &[EncodedFragment],
    count: usize,
) -> BpResult<Vec<EncodedFragment>>
Expand description

Produce count new fragments by recombining existing ones.

No decoding is performed. The Pouch only needs the fragments it holds. The resulting fragments are valid RLNC fragments of the same original chunk.

Requires at least 1 input fragment.

ยงErrors

Returns an error if fragments is empty or count is 0.