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

Struct Decoder

par1/decoder.go:18–29  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

16// missing/corrupt data files from the parity files (.P00, .P01,
17// etc.).
18type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected