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

Function IsBelowBufferPoolingThreshold

mem/buffers.go:74–76  ·  view source on GitHub ↗

IsBelowBufferPoolingThreshold returns true if the given size is less than or equal to the threshold for buffer pooling. This is used to determine whether to pool buffers or allocate them directly.

(size int)

Source from the content-addressed store, hash-verified

72// equal to the threshold for buffer pooling. This is used to determine whether
73// to pool buffers or allocate them directly.
74func IsBelowBufferPoolingThreshold(size int) bool {
75 return size <= bufferPoolingThreshold
76}
77
78type buffer struct {
79 refs atomic.Int32

Callers 4

MarshalMethod · 0.92
readDataFrameMethod · 0.92
NewBufferFunction · 0.85
CopyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected