MCPcopy Create free account
hub / github.com/AdRoll/baker / Read

Method Read

input/inpututils/compressedstream.go:91–98  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

89}
90
91func (i *inputStatsReader) Read(data []byte) (int, error) {
92 n, err := i.r.Read(data)
93 if i.sz != 0 {
94 atomic.AddInt64(&i.n, int64(n))
95 atomic.AddInt64(&i.s.processedSize, int64(n))
96 }
97 return n, err
98}
99
100func (i *inputStatsReader) Close() error {
101 // If we knew the size of the file in advanced, and it's not been fully

Callers 6

TestMainFunction · 0.80
valuesFromCSVFunction · 0.80
randomLogLineFunction · 0.80
handleStreamMethod · 0.80
RunMethod · 0.80
parseFileTypedMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestMainFunction · 0.64
randomLogLineFunction · 0.64