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

Method unsetFlag

nocopy_linkbuffer.go:949–951  ·  view source on GitHub ↗
(flag uint8)

Source from the content-addressed store, hash-verified

947}
948
949func (node *linkBufferNode) unsetFlag(flag uint8) {
950 node.mode &^= flag
951}
952
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.

Callers 1

WriteDirectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected