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

Method Read

syncio/buffer.go:16–20  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

14}
15
16func (rw *Buffer) Read(p []byte) (n int, err error) {
17 rw.l.Lock()
18 defer rw.l.Unlock()
19 return rw.b.Read(p)
20}
21
22func (rw *Buffer) Write(p []byte) (n int, err error) {
23 rw.l.Lock()

Callers 7

TestMixedReadsAndWritesFunction · 0.95
TestNextFunction · 0.95
TestGrowFunction · 0.95
TestBufferGrowthFunction · 0.95
TestCommandStdoutPipeFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestMixedReadsAndWritesFunction · 0.76
TestNextFunction · 0.76
TestGrowFunction · 0.76
TestBufferGrowthFunction · 0.76
TestCommandStdoutPipeFunction · 0.36