A Coder is an object that can generate parity shards, verify parity shards, and reconstruct data shards from parity shards.
| 28 | // A Coder is an object that can generate parity shards, verify parity |
| 29 | // shards, and reconstruct data shards from parity shards. |
| 30 | type Coder struct { |
| 31 | dataShards, parityShards int |
| 32 | numGoroutines int |
| 33 | parityMatrix gf2p16.Matrix |
| 34 | } |
| 35 | |
| 36 | func newCauchyParityMatrix(dataShards, parityShards int) gf2p16.Matrix { |
| 37 | return newCauchyMatrix(parityShards, dataShards, func(i int) gf2p16.T { |
nothing calls this directly
no outgoing calls
no test coverage detected