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

Function ioBufferPool

internal/transport/http_util.go:594–604  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

592}
593
594func ioBufferPool(size int) *imem.SimpleBufferPool {
595 ioBufferMutex.Lock()
596 defer ioBufferMutex.Unlock()
597 pool, ok := ioBufferPoolMap[size]
598 if ok {
599 return pool
600 }
601 pool = imem.NewDirtySimplePool()
602 ioBufferPoolMap[size] = pool
603 return pool
604}
605
606// ParseDialTarget returns the network and address to pass to dialer.
607func ParseDialTarget(target string) (string, string) {

Callers 3

bufferedReaderFunction · 0.85
newFramerFunction · 0.85

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1