A Decoder keeps track of all information needed to check the integrity of a set of data files, and possibly repair any missing/corrupt data files from the parity files (.P00, .P01, etc.).
| 16 | // missing/corrupt data files from the parity files (.P00, .P01, |
| 17 | // etc.). |
| 18 | type Decoder struct { |
| 19 | fileIO fileIO |
| 20 | delegate DecoderDelegate |
| 21 | |
| 22 | indexFile string |
| 23 | indexVolume volume |
| 24 | |
| 25 | fileData [][]byte |
| 26 | |
| 27 | shardByteCount int |
| 28 | parityData [][]byte |
| 29 | } |
| 30 | |
| 31 | // DecoderDelegate holds methods that are called during the decode |
| 32 | // process. |
nothing calls this directly
no outgoing calls
no test coverage detected