MCPcopy Index your code
hub / github.com/golang/groupcache / Reader

Method Reader

byteview.go:140–145  ·  view source on GitHub ↗

Reader returns an io.ReadSeeker for the bytes in v.

()

Source from the content-addressed store, hash-verified

138
139// Reader returns an io.ReadSeeker for the bytes in v.
140func (v ByteView) Reader() io.ReadSeeker {
141 if v.b != nil {
142 return bytes.NewReader(v.b)
143 }
144 return strings.NewReader(v.s)
145}
146
147// ReadAt implements io.ReaderAt on the bytes in v.
148func (v ByteView) ReadAt(p []byte, off int64) (n int, err error) {

Callers 1

TestByteViewFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestByteViewFunction · 0.64