MCPcopy
hub / github.com/Terry-Mao/goim / Reset

Method Reset

pkg/bufio/bufio.go:68–70  ·  view source on GitHub ↗

Reset discards any buffered data, resets all state, and switches the buffered reader to read from r.

(r io.Reader)

Source from the content-addressed store, hash-verified

66// Reset discards any buffered data, resets all state, and switches
67// the buffered reader to read from r.
68func (b *Reader) Reset(r io.Reader) {
69 b.reset(b.buf, r)
70}
71
72// ResetBuffer discards any buffered data, resets all state, and switches
73// the buffered reader to read from r.

Callers 12

TestReaderResetFunction · 0.95
JoinInt32sFunction · 0.45
JoinInt64sFunction · 0.45
TestWriterFunction · 0.45
addMethod · 0.45
expireMethod · 0.45

Calls 1

resetMethod · 0.95

Tested by 8

TestReaderResetFunction · 0.76
TestWriterFunction · 0.36