MCPcopy Create free account
hub / github.com/danielpaulus/quicktime_video_hack / clockRefReply

Function clockRefReply

screencapture/packet/sync.go:27–36  ·  view source on GitHub ↗
(clockRef uint64, correlationID uint64)

Source from the content-addressed store, hash-verified

25const EmptyCFType CFTypeID = 1
26
27func clockRefReply(clockRef uint64, correlationID uint64) []byte {
28 length := 28
29 data := make([]byte, length)
30 binary.LittleEndian.PutUint32(data, uint32(length))
31 binary.LittleEndian.PutUint32(data[4:], ReplyPacketMagic)
32 binary.LittleEndian.PutUint64(data[8:], correlationID)
33 binary.LittleEndian.PutUint32(data[16:], 0)
34 binary.LittleEndian.PutUint64(data[20:], clockRef)
35 return data
36}

Callers 3

NewReplyMethod · 0.85
NewReplyMethod · 0.85
NewReplyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected