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

Method Bytes

ntp/protocol/packet.go:122–126  ·  view source on GitHub ↗

Bytes converts Packet to []bytes

()

Source from the content-addressed store, hash-verified

120const (
121 LeapNoWarning = 0
122 LeapAddSecond = 1
123 LeapDelSecond = 2
124 // LeapAlarm means the clock is not synchronised
125 LeapAlarm = 3
126)
127
128const (
129 vnFirst = 1

Callers 11

CommunicateWithDataMethod · 0.45
TestRequestConversionFunction · 0.45
TestResponseConversionFunction · 0.45
FuzzBytesToPacketFunction · 0.45
CommunicateMethod · 0.45
serveMethod · 0.45
TestHandleRequestFunction · 0.45
TestHandleRequestEmptyFunction · 0.45

Implementers 1

Headerptp/protocol/protocol.go

Calls 1

WriteMethod · 0.45

Tested by 8

TestRequestConversionFunction · 0.36
TestResponseConversionFunction · 0.36
FuzzBytesToPacketFunction · 0.36
TestHandleRequestFunction · 0.36
TestHandleRequestEmptyFunction · 0.36