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

Function NewDecoder

par1/decoder.go:107–109  ·  view source on GitHub ↗

NewDecoder reads the given index file, which usually has a .PAR extension.

(delegate DecoderDelegate, indexFile string)

Source from the content-addressed store, hash-verified

105// NewDecoder reads the given index file, which usually has a .PAR
106// extension.
107func NewDecoder(delegate DecoderDelegate, indexFile string) (*Decoder, error) {
108 return newDecoder(defaultFileIO{}, delegate, indexFile)
109}
110
111func sixteenKHash(data []byte) [md5.Size]byte {
112 if len(data) < 16*1024 {

Callers

nothing calls this directly

Calls 1

newDecoderFunction · 0.70

Tested by

no test coverage detected