MCPcopy Create free account
hub / github.com/facebook/time / HasMore

Method HasMore

ntp/control/packet.go:322–324  ·  view source on GitHub ↗

HasMore returns true if packet has More flag set

()

Source from the content-addressed store, hash-verified

320
321// HasMore returns true if packet has More flag set
322func (n NTPControlMsgHead) HasMore() bool {
323 return n.REMOp&0x20 != 0 // more flag, bit 5
324}
325
326// GetOperation returns int operation extracted from REMOp 8bit word
327func (n NTPControlMsgHead) GetOperation() uint8 {

Callers 4

TestMakeREMOpFunction · 0.95
RunMethod · 0.80
ServerStatsMethod · 0.80
CommunicateWithDataMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestMakeREMOpFunction · 0.76