MCPcopy
hub / github.com/grpc/grpc-go / TieredBufferPool

Struct TieredBufferPool

internal/mem/buffer_pool.go:259–262  ·  view source on GitHub ↗

TieredBufferPool implements the BufferPool interface with multiple tiers of buffer pools for different sizes of buffers.

Source from the content-addressed store, hash-verified

257// TieredBufferPool implements the BufferPool interface with multiple tiers of
258// buffer pools for different sizes of buffers.
259type TieredBufferPool struct {
260 sizedPools []*sizedBufferPool
261 fallbackPool SimpleBufferPool
262}
263
264// NewTieredBufferPool returns a BufferPool implementation that uses multiple
265// underlying pools of the given pool sizes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected