MCPcopy Create free account
hub / github.com/quay/clair / GetDecoder

Function GetDecoder

internal/codec/codec.go:58–62  ·  view source on GitHub ↗

GetDecoder returns a decoder configured to read from r.

(r io.Reader)

Source from the content-addressed store, hash-verified

56
57// GetDecoder returns a decoder configured to read from r.
58func GetDecoder(r io.Reader) *Decoder {
59 d := decPool.Get().(*Decoder)
60 d.Reset(r)
61 return d
62}
63
64// PutDecoder returns a decoder to the pool.
65func PutDecoder(d *Decoder) {

Callers 12

indexReportMethod · 0.92
affectedManifestsMethod · 0.92
ScanMethod · 0.92
updateOperationsMethod · 0.92
UpdateDiffMethod · 0.92
AffectedManifestsMethod · 0.92
IndexMethod · 0.92
IndexReportMethod · 0.92
DeleteManifestsMethod · 0.92
IndexReportMethod · 0.92
VulnerabilityReportMethod · 0.92
BenchmarkDecodeFunction · 0.85

Calls 1

ResetMethod · 0.80

Tested by 1

BenchmarkDecodeFunction · 0.68