MCPcopy 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().
14type Pool interface {
15 Get() (Buffer, error) // Allocate a Buffer
16 Put(buf Buffer) error // Release or Reuse a Buffer
17}
18

Callers 6

TestPoolFunction · 0.95
growMethod · 0.65
GetMethod · 0.65
poolTestFunction · 0.65
poolAtTestFunction · 0.65
growMethod · 0.65

Implementers 4

poolAtpool_at.go
filePoolAtpool_at.go
poolpool.go
filePoolpool.go

Calls

no outgoing calls

Tested by 3

TestPoolFunction · 0.76
poolTestFunction · 0.52
poolAtTestFunction · 0.52