Function reed_solomon_simd::decode

source ·
pub fn decode<O, R, OT, RT>(
    original_count: usize,
    recovery_count: usize,
    original: O,
    recovery: R
) -> Result<HashMap<usize, Vec<u8>>, Error>
where O: IntoIterator<Item = (usize, OT)>, R: IntoIterator<Item = (usize, RT)>, OT: AsRef<[u8]>, RT: AsRef<[u8]>,
Expand description

Decodes in one go using ReedSolomonDecoder, returning restored original shards with their indexes.

  • Given shard indexes must be the same that were used in encoding.

See simple usage for an example and more details.