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

Method Put

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

Put returns a buffer to the pool. The provided pointer must hold a prefix of the buffer obtained via BufferPool.Get to ensure the buffer's entire capacity can be re-used.

(*[]byte)

Source from the content-addressed store, hash-verified

45 // The provided pointer must hold a prefix of the buffer obtained via
46 // BufferPool.Get to ensure the buffer's entire capacity can be re-used.
47 Put(*[]byte)
48}
49
50// BinaryTieredBufferPool is a buffer pool that uses multiple sub-pools with

Callers 15

PutMethod · 0.65
PutMethod · 0.65
FlushMethod · 0.65
readDataFrameMethod · 0.65
dequeueMethod · 0.65
HandleStreamsMethod · 0.65
NewNonBlockingFunction · 0.65
ReadOnReadyMethod · 0.65
ReadOnReadyMethod · 0.65
ReadMethod · 0.65
TestReadyReader_EOFMethod · 0.65

Implementers 15

constBufferPoolcredentials/alts/internal/conn/record.
swappableBufferPoolbenchmark/benchmain/main.go
swappableBufferPoolinternal/leakcheck/leakcheck.go
trackingBufferPoolinternal/leakcheck/leakcheck.go
constBufferPoolinternal/transport/readyreader/ready_r
trackingBufferPoolinternal/transport/readyreader/ready_r
BinaryTieredBufferPoolinternal/mem/buffer_pool.go
NopBufferPoolinternal/mem/buffer_pool.go
sizedBufferPoolinternal/mem/buffer_pool.go
TieredBufferPoolinternal/mem/buffer_pool.go
SimpleBufferPoolinternal/mem/buffer_pool.go
Unboundedinternal/buffer/unbounded.go

Calls

no outgoing calls

Tested by 7

TestReadyReader_EOFMethod · 0.52
TestReadyReader_TCPMethod · 0.52
PutMethod · 0.52
TestBufferPool_ClearsMethod · 0.52
ReportMetricMethod · 0.52