MCPcopy Create free account
hub / github.com/cloudwego/netpoll / free

Function free

nocopy.go:279–284  ·  view source on GitHub ↗

free limits the cap of the buffer from mcache.

(buf []byte)

Source from the content-addressed store, hash-verified

277
278// free limits the cap of the buffer from mcache.
279func free(buf []byte) {
280 if cap(buf) > mallocMax {
281 return
282 }
283 mcache.Free(buf)
284}

Callers 3

PeekMethod · 0.85
ReleaseMethod · 0.85
ReleaseMethod · 0.85

Calls 1

FreeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…