MCPcopy Create free account
hub / github.com/akalin/gopar / DecoderDelegate

Interface DecoderDelegate

par2/decoder.go:184–198  ·  view source on GitHub ↗

DecoderDelegate holds methods that are called during the decode process.

Source from the content-addressed store, hash-verified

182// DecoderDelegate holds methods that are called during the decode
183// process.
184type 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.

Callers 18

readFileFunction · 0.65
readFileFunction · 0.65
readFileFunction · 0.65
readFileFunction · 0.65
OnRecoveryPacketLoadMethod · 0.65
readFileFunction · 0.65
OnUnknownPacketLoadMethod · 0.65
readFileFunction · 0.65
readFileFunction · 0.65
LoadFileDataMethod · 0.65
LoadFileDataMethod · 0.65
LoadFileDataMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected