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

Interface PoolAt

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

PoolAt provides a way to Allocate and Release BufferAt objects PoolAt's mut be concurrent-safe for calls to Get() and Put().

Source from the content-addressed store, hash-verified

12// PoolAt provides a way to Allocate and Release BufferAt objects
13// PoolAt's mut be concurrent-safe for calls to Get() and Put().
14type PoolAt interface {
15 Get() (BufferAt, error) // Allocate a BufferAt
16 Put(buf BufferAt) error // Release or Reuse a BufferAt
17}
18
19type poolAt struct {
20 poolAt sync.Pool

Callers 4

TestPoolAtFunction · 0.95
GetMethod · 0.65
TestPoolAtFunction · 0.95
PutMethod · 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…