DecoderDelegate holds methods that are called during the decode process.
| 182 | // DecoderDelegate holds methods that are called during the decode |
| 183 | // process. |
| 184 | type DecoderDelegate interface { |
| 185 | OnCreatorPacketLoad(clientID string) |
| 186 | OnMainPacketLoad(sliceByteCount, recoverySetCount, nonRecoverySetCount int) |
| 187 | OnFileDescriptionPacketLoad(fileID [16]byte, filename string, byteCount int) |
| 188 | OnIFSCPacketLoad(fileID [16]byte) |
| 189 | OnRecoveryPacketLoad(exponent uint16, byteCount int) |
| 190 | OnUnknownPacketLoad(packetType [16]byte, byteCount int) |
| 191 | OnOtherPacketSkip(setID [16]byte, packetType [16]byte, byteCount int) |
| 192 | OnDataFileLoad(i, n int, path string, byteCount, hits, misses int, err error) |
| 193 | OnParityFileLoad(i int, path string, err error) |
| 194 | OnDetectCorruptDataChunk(fileID [16]byte, path string, startByteOffset, endByteOffset int) |
| 195 | OnDetectDataFileHashMismatch(fileID [16]byte, path string) |
| 196 | OnDetectDataFileWrongByteCount(fileID [16]byte, path string) |
| 197 | OnDataFileWrite(i, n int, path string, byteCount int, err error) |
| 198 | } |
| 199 | |
| 200 | // DoNothingDecoderDelegate is an implementation of DecoderDelegate |
| 201 | // that does nothing for all methods. |
no outgoing calls
no test coverage detected