MCPcopy
hub / github.com/grafana/dskit / WriteTo

Method WriteTo

log/buffered.go:137–142  ·  view source on GitHub ↗

WriteTo writes the buffered lines to the given writer.

(w io.Writer)

Source from the content-addressed store, hash-verified

135
136// WriteTo writes the buffered lines to the given writer.
137func (t *threadsafeBuffer) WriteTo(w io.Writer) (n int64, err error) {
138 t.mx.Lock()
139 defer t.mx.Unlock()
140
141 return t.buf.WriteTo(w)
142}
143
144// Reset resets the buffer to be empty,
145// but it retains the underlying storage for use by future writes.

Callers 1

FlushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected