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

Method Put

mem/buffer_pool.go:38–38  ·  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

36 // The provided pointer must hold a prefix of the buffer obtained via
37 // BufferPool.Get to ensure the buffer's entire capacity can be re-used.
38 Put(*[]byte)
39}
40
41var (

Callers 15

DoMethod · 0.65
doWithMaxSizeMethod · 0.65
MarshalMethod · 0.65
CloseMethod · 0.65
DecompressMethod · 0.65
CloseMethod · 0.65
ReadOnReadyMethod · 0.65
dropProtectedIfEmtpyMethod · 0.65
WriteMethod · 0.65
PutMethod · 0.65
UpdateClientConnStateMethod · 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 2

OnMessageMethod · 0.52
TestBufferPoolMethod · 0.52