Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shopify/goose
/ Len
Method
Len
syncio/buffer.go:135–139 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
133
}
134
135
func
(rw *Buffer) Len() int {
136
rw.l.RLock()
137
defer
rw.l.RUnlock()
138
return
rw.b.Len()
139
}
140
141
func
(rw *Buffer) Cap() int {
142
rw.l.RLock()
Callers
7
TestCommandContextCancels
Function · 0.95
TestCommandForceKills
Function · 0.95
TestMixedReadsAndWrites
Function · 0.95
BenchmarkBufferFullSmallReads
Function · 0.95
check
Function · 0.45
ResponseBody
Method · 0.45
submitToSplunk
Method · 0.45
Calls
no outgoing calls
Tested by
5
TestCommandContextCancels
Function · 0.76
TestCommandForceKills
Function · 0.76
TestMixedReadsAndWrites
Function · 0.76
BenchmarkBufferFullSmallReads
Function · 0.76
check
Function · 0.36