Skip to main content

decode

Function decode 

Source
pub fn decode(data: &mut [Option<Vec<u8>>], parity: &[Option<Vec<u8>>]) -> bool
Expand description

Reconstruct missing data chunks in place. Returns false if unrecoverable.

Only the erased data positions are solved for, so the system is d x d where d is the number of erasures rather than n x n.