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

Method Get

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

Get returns a buffer with specified length from the pool.

(length int)

Source from the content-addressed store, hash-verified

39type bufferPool interface {
40 // Get returns a buffer with specified length from the pool.
41 Get(length int) *[]byte
42
43 // Put returns a buffer to the pool.
44 //

Callers 15

TestCustomLBMethod · 0.65
getMetadataValuesFunction · 0.65
GetMethod · 0.65
GetMethod · 0.65
WriteMethod · 0.65
readDataFrameMethod · 0.65
enqueueMethod · 0.65
HandleStreamsMethod · 0.65
NewHTTP2ClientFunction · 0.65
NewNonBlockingFunction · 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 14

TestCustomLBMethod · 0.52
GetMethod · 0.52
verifyUpdateFromResolverFunction · 0.52
TestBufferPool_ClearsMethod · 0.52
setupDNSFunction · 0.52
newStubServerFunction · 0.52
waitForMetricMethod · 0.52
waitForSpecificMetricMethod · 0.52