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

Struct Encoder

par2/encoder.go:22–38  ·  view source on GitHub ↗

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).

Source from the content-addressed store, hash-verified

20// volumes for a set of data files, and write them out to parity files
21// (that usually end in .par2).
22type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected