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

Struct swappableBufferPool

internal/leakcheck/leakcheck.go:60–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58var globalTimerTracker *timerFactory
59
60type swappableBufferPool struct {
61 atomic.Pointer[mem.BufferPool]
62}
63
64func (b *swappableBufferPool) Get(length int) *[]byte {
65 return (*b.Load()).Get(length)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected