Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
func
(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
22
func
(rw *Buffer) Write(p []byte) (n int, err error) {
23
rw.l.Lock()
Callers
7
TestMixedReadsAndWrites
Function · 0.95
TestNext
Function · 0.95
TestGrow
Function · 0.95
TestBufferGrowth
Function · 0.95
BenchmarkBufferNotEmptyWriteRead
Function · 0.95
BenchmarkBufferFullSmallReads
Function · 0.95
TestCommandStdoutPipe
Function · 0.45
Calls
no outgoing calls
Tested by
7
TestMixedReadsAndWrites
Function · 0.76
TestNext
Function · 0.76
TestGrow
Function · 0.76
TestBufferGrowth
Function · 0.76
BenchmarkBufferNotEmptyWriteRead
Function · 0.76
BenchmarkBufferFullSmallReads
Function · 0.76
TestCommandStdoutPipe
Function · 0.36