Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shopify/goose
/ Cap
Method
Cap
syncio/buffer.go:141–145 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
139
}
140
141
func
(rw *Buffer) Cap() int {
142
rw.l.RLock()
143
defer
rw.l.RUnlock()
144
return
rw.b.Cap()
145
}
146
147
var
_
interface
{
148
io.ReadWriter
Callers
4
TestCapWithPreallocatedSlice
Function · 0.95
TestCapWithSliceAndWrittenData
Function · 0.95
TestBufferGrowth
Function · 0.95
BenchmarkBufferFullSmallReads
Function · 0.95
Calls
no outgoing calls
Tested by
4
TestCapWithPreallocatedSlice
Function · 0.76
TestCapWithSliceAndWrittenData
Function · 0.76
TestBufferGrowth
Function · 0.76
BenchmarkBufferFullSmallReads
Function · 0.76