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

Function newBuffer

mem/buffers.go:95–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func newBuffer() *buffer {
96 return bufferObjectPool.Get().(*buffer)
97}
98
99// NewBuffer creates a new Buffer from the given data, initializing the reference
100// counter to 1. The data will then be returned to the given pool when all

Callers 11

newPooledBufferFunction · 0.70
NewBufferFunction · 0.70
SliceMethod · 0.70
splitMethod · 0.70

Calls 1

GetMethod · 0.65