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

Method IsEmpty

nocopy_linkbuffer.go:879–881  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

877}
878
879func (node *linkBufferNode) IsEmpty() (ok bool) {
880 return node.off == len(node.buf)
881}
882
883func (node *linkBufferNode) Reset() {
884 if node.origin != nil || atomic.LoadInt32(&node.refer) != 1 {

Callers 9

SetOnRequestMethod · 0.45
isIdleMethod · 0.45
TestLinkBufferFunction · 0.45
TestLinkBufferMultiNodeFunction · 0.45
outputsMethod · 0.45
outputAckMethod · 0.45
flushMethod · 0.45

Calls

no outgoing calls

Tested by 4

TestLinkBufferFunction · 0.36
TestLinkBufferMultiNodeFunction · 0.36