You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug has not been reported before or it is reoccuring in a newer version
Detailed Description
All zeros bytes encoded can't be decode. And it says Unhandled exception: System.ArgumentException: Not enough shards present
Steps to Reproduce
Running example program
Console.WriteLine("Managed Example Byte");Console.WriteLine("--------------------");constintdataShardCount=4;constintparityShardCount=2;// Initialize Reed-Solomon with data shards and parity shardsReedSolomonrs=newReedSolomon(dataShardCount,parityShardCount);// Example data to encodebyte[]data={0,0,0,0,0,0,0,0,0};Console.WriteLine("Data:");Console.WriteLine(string.Join(" ",data));// Encode the data using ManagedEncode to produce shardsvarshards=rs.ManagedEncode(data,dataShardCount,parityShardCount);Console.WriteLine("Encoded Data:");foreach(varshardinshards){Console.WriteLine(string.Join(" ",shard));}// Simulate loss of one shardshards[1]=null;Console.WriteLine("Encoded with missing Data:");foreach(varshardinshards){if(shard==null){Console.WriteLine("null");}else{Console.WriteLine(string.Join(" ",shard));}}// Decode the remaining shards using ManagedDecode to recover original datavardecodedData=rs.ManagedDecode(shards,dataShardCount,parityShardCount);Console.WriteLine("Decoded data:");Console.WriteLine(string.Join(" ",decodedData));
Related Branch or Version
version 1.1.0
Possible Fix
Further Information
The text was updated successfully, but these errors were encountered:
Checklist
Detailed Description
All zeros bytes encoded can't be decode. And it says
Unhandled exception: System.ArgumentException: Not enough shards present
Steps to Reproduce
Running example program
Related Branch or Version
version 1.1.0
Possible Fix
Further Information
The text was updated successfully, but these errors were encountered: