An Encoder keeps track of all information needed to create parity volumes for a set of data files, and write them out to parity files (that usually end in .par2).
| 20 | // volumes for a set of data files, and write them out to parity files |
| 21 | // (that usually end in .par2). |
| 22 | type Encoder struct { |
| 23 | fileIO fileIO |
| 24 | delegate EncoderDelegate |
| 25 | |
| 26 | basePath string |
| 27 | relFilePaths []string |
| 28 | |
| 29 | sliceByteCount int |
| 30 | parityShardCount int |
| 31 | |
| 32 | numGoroutines int |
| 33 | |
| 34 | recoverySet []fileID |
| 35 | recoverySetInfos map[fileID]encoderInputFileInfo |
| 36 | |
| 37 | parityShards [][]byte |
| 38 | } |
| 39 | |
| 40 | // EncoderDelegate holds methods that are called during the encode |
| 41 | // process. |
nothing calls this directly
no outgoing calls
no test coverage detected