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

Method reusable

nocopy_linkbuffer.go:955–957  ·  view source on GitHub ↗

reusable reports whether the node's buffer memory is owned by the LinkBuffer and can be recycled. Called during Release to decide if node.buf should be returned to mcache via free.

()

Source from the content-addressed store, hash-verified

953// reusable reports whether the node's buffer memory is owned by the LinkBuffer and can be recycled.
954// Called during Release to decide if node.buf should be returned to mcache via free.
955func (node *linkBufferNode) reusable() bool {
956 return node.mode&flagUnmanaged == 0
957}
958
959// readExposed reports whether the node's buffer has been returned directly to user code
960// via a zero-copy Reader method and may still be referenced externally.

Callers 2

ReleaseMethod · 0.95
TestLinkBufferBufferModeFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestLinkBufferBufferModeFunction · 0.64