MCPcopy Create free account
hub / github.com/djherbis/buffer / Pool

Interface Pool

pool.go:14–17  ·  view source on GitHub ↗

Pool provides a way to Allocate and Release Buffer objects Pools mut be concurrent-safe for calls to Get() and Put().

Source from the content-addressed store, hash-verified

12// Pool provides a way to Allocate and Release Buffer objects
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
19type pool struct {
20 pool sync.Pool

Callers 14

TestPoolFunction · 0.95
growMethod · 0.65
GetMethod · 0.65
poolTestFunction · 0.65
poolAtTestFunction · 0.65
growMethod · 0.65
TestPoolFunction · 0.95
ReadMethod · 0.65
ResetMethod · 0.65
PutMethod · 0.65
poolTestFunction · 0.65
poolAtTestFunction · 0.65

Implementers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…