Upgrade to ReedSolomon 4.0 release (#6026)

This commit is contained in:
Pankaj Garg
2019-09-23 13:53:52 -07:00
committed by GitHub
parent eeda7338cc
commit dbd337c616
4 changed files with 27 additions and 26 deletions

View File

@@ -593,11 +593,12 @@ impl Shredder {
let session = Session::new(num_data, num_coding).unwrap();
let mut blocks: Vec<&mut [u8]> = shred_bufs
let mut blocks: Vec<(&mut [u8], bool)> = shred_bufs
.iter_mut()
.map(|x| x[coding_block_offset..].as_mut())
.zip(present.clone())
.collect();
session.decode_blocks(&mut blocks, &present)?;
session.decode_blocks(&mut blocks)?;
let mut num_drained = 0;
present