MCPcopy Create free account
hub / github.com/Shopify/goose / ReadFrom

Method ReadFrom

syncio/buffer.go:28–32  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

26}
27
28func (rw *Buffer) ReadFrom(r io.Reader) (n int64, err error) {
29 rw.l.Lock()
30 defer rw.l.Unlock()
31 return rw.b.ReadFrom(r)
32}
33
34func (rw *Buffer) WriteTo(w io.Writer) (n int64, err error) {
35 rw.l.Lock()

Callers 2

TestReadFromFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestReadFromFunction · 0.76