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

Method getFlag

nocopy_linkbuffer.go:941–943  ·  view source on GitHub ↗
(flag uint8)

Source from the content-addressed store, hash-verified

939}
940
941func (node *linkBufferNode) getFlag(flag uint8) bool {
942 return node.mode&flag > 0
943}
944
945func (node *linkBufferNode) setFlag(flag uint8) {
946 node.mode |= flag

Callers 2

growthMethod · 0.80
TestLinkBufferBufferModeFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestLinkBufferBufferModeFunction · 0.64