Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
120
const
(
121
LeapNoWarning = 0
122
LeapAddSecond = 1
123
LeapDelSecond = 2
124
// LeapAlarm means the clock is not synchronised
125
LeapAlarm = 3
126
)
127
128
const
(
129
vnFirst = 1
Callers
11
CommunicateWithData
Method · 0.45
TestRequestConversion
Function · 0.45
TestResponseConversion
Function · 0.45
TestPacketConversionFailure
Function · 0.45
Benchmark_PacketToBytesConversion
Function · 0.45
FuzzBytesToPacket
Function · 0.45
TestDirectBinaryWritePanicPrevention
Function · 0.45
Communicate
Method · 0.45
serve
Method · 0.45
TestHandleRequest
Function · 0.45
TestHandleRequestEmpty
Function · 0.45
Implementers
1
Header
ptp/protocol/protocol.go
Calls
1
Write
Method · 0.45
Tested by
8
TestRequestConversion
Function · 0.36
TestResponseConversion
Function · 0.36
TestPacketConversionFailure
Function · 0.36
Benchmark_PacketToBytesConversion
Function · 0.36
FuzzBytesToPacket
Function · 0.36
TestDirectBinaryWritePanicPrevention
Function · 0.36
TestHandleRequest
Function · 0.36
TestHandleRequestEmpty
Function · 0.36