MCPcopy
hub / github.com/aptly-dev/aptly / Write

Method Write

console/progress.go:112–117  ·  view source on GitHub ↗

Write is implementation of io.Writer to support updating of progress bar

(s []byte)

Source from the content-addressed store, hash-verified

110
111// Write is implementation of io.Writer to support updating of progress bar
112func (p *Progress) Write(s []byte) (int, error) {
113 if p.bar != nil {
114 p.bar.Add(len(s))
115 }
116 return len(s), nil
117}
118
119// AddBar increments progress for progress bar
120func (p *Progress) AddBar(count int) {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected