MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / FlushTo

Method FlushTo

xmlparser/decoder.go:152–155  ·  view source on GitHub ↗

FlushTo writes the remaining data from the reader to the provided writer.

(w io.Writer)

Source from the content-addressed store, hash-verified

150
151// FlushTo writes the remaining data from the reader to the provided writer.
152func (d *Decoder) FlushTo(w io.Writer) error {
153 _, err := d.r.WriteTo(w)
154 return err
155}
156
157// setReader sets a new reader for the decoder, wrapping it in a bufio.Reader from the pool.
158func (d *Decoder) setReader(r io.Reader) {

Callers

nothing calls this directly

Calls 1

WriteToMethod · 0.65

Tested by

no test coverage detected