Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djherbis/buffer
/ Get
Method
Get
pool.go:15–15 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
13
// Pools mut be concurrent-safe for calls to Get() and Put().
14
type
Pool
interface
{
15
Get() (Buffer, error)
// Allocate a Buffer
16
Put(buf Buffer) error
// Release or Reuse a Buffer
17
}
18
Callers
6
TestPool
Function · 0.95
grow
Method · 0.65
Get
Method · 0.65
poolTest
Function · 0.65
poolAtTest
Function · 0.65
grow
Method · 0.65
Implementers
4
poolAt
pool_at.go
filePoolAt
pool_at.go
pool
pool.go
filePool
pool.go
Calls
no outgoing calls
Tested by
3
TestPool
Function · 0.76
poolTest
Function · 0.52
poolAtTest
Function · 0.52