jannson / reedsolomon-c

C compatible version for https://github.com/klauspost/reedsolomon.
MIT License
105 stars 28 forks source link

请教reed_solomon_reconstruct用法 #2

Closed Hoke closed 6 years ago

Hoke commented 6 years ago

请问你在test_rc.c 例子中,reed_solomon_reconstruct(rs, data_blocks, zilch, nrShards, blockSize);里的zilch是自己设置的值,但假如真实环境中,这个zilch怎么获取呢?比如:服务器给客户端发送数据,客户端收到数据后,用reed_solomon_reconstruct对数据进行解码,但客户端这个zilch值怎么填写呢?

Hoke commented 6 years ago

看了这篇文章就基本理解了https://www.backblaze.com/blog/reed-solomon/