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

Method readExposed

nocopy_linkbuffer.go:961–963  ·  view source on GitHub ↗

readExposed reports whether the node's buffer has been returned directly to user code via a zero-copy Reader method and may still be referenced externally.

()

Source from the content-addressed store, hash-verified

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.
961func (node *linkBufferNode) readExposed() bool {
962 return node.mode&flagReadExposed > 0
963}

Callers 6

readCopyMethod · 0.80
TestLinkBufferFunction · 0.80
TestLinkBufferMultiNodeFunction · 0.80
TestLinkBufferReferFunction · 0.80
TestLinkBufferBufferModeFunction · 0.80
TestLinkBufferReadCopyFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestLinkBufferFunction · 0.64
TestLinkBufferMultiNodeFunction · 0.64
TestLinkBufferReferFunction · 0.64
TestLinkBufferBufferModeFunction · 0.64
TestLinkBufferReadCopyFunction · 0.64