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

Method Get

benchmark/benchmain/main.go:162–170  ·  view source on GitHub ↗
(length int)

Source from the content-addressed store, hash-verified

160}
161
162func (p swappableBufferPool) Get(length int) *[]byte {
163 var pool mem.BufferPool
164 if useNopBufferPool.Load() {
165 pool = mem.NopBufferPool{}
166 } else {
167 pool = p.BufferPool
168 }
169 return pool.Get(length)
170}
171
172func (p swappableBufferPool) Put(i *[]byte) {
173 if useNopBufferPool.Load() {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
LoadMethod · 0.45

Tested by

no test coverage detected