MCPcopy
hub / github.com/autobrr/qui / Get

Method Get

internal/proxy/buffer_pool.go:26–28  ·  view source on GitHub ↗

Get returns a buffer from the pool

()

Source from the content-addressed store, hash-verified

24
25// Get returns a buffer from the pool
26func (p *BufferPool) Get() []byte {
27 return p.pool.Get().([]byte)
28}
29
30// Put returns a buffer to the pool
31func (p *BufferPool) Put(buf []byte) {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected