Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shopify/goose
/ Write
Method
Write
syncio/buffer.go:22–26 ·
view source on GitHub ↗
(p []byte)
Source
from the content-addressed store, hash-verified
20
}
21
22
func
(rw *Buffer) Write(p []byte) (n int, err error) {
23
rw.l.Lock()
24
defer
rw.l.Unlock()
25
return
rw.b.Write(p)
26
}
27
28
func
(rw *Buffer) ReadFrom(r io.Reader) (n int64, err error) {
29
rw.l.Lock()
Callers
10
TestBasicOperations
Function · 0.95
TestCapWithSliceAndWrittenData
Function · 0.95
TestRuneIO
Function · 0.95
TestGrow
Function · 0.95
TestBufferGrowth
Function · 0.95
BenchmarkBufferNotEmptyWriteRead
Function · 0.95
BenchmarkBufferFullSmallReads
Function · 0.95
fillBytes
Function · 0.45
TestThrottlerMiddleware
Function · 0.45
Run
Method · 0.45
Calls
no outgoing calls
Tested by
9
TestBasicOperations
Function · 0.76
TestCapWithSliceAndWrittenData
Function · 0.76
TestRuneIO
Function · 0.76
TestGrow
Function · 0.76
TestBufferGrowth
Function · 0.76
BenchmarkBufferNotEmptyWriteRead
Function · 0.76
BenchmarkBufferFullSmallReads
Function · 0.76
fillBytes
Function · 0.36
TestThrottlerMiddleware
Function · 0.36