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

Function ReadFBClockDataV2

fbclock/shmem_notlinux.go:269–276  ·  view source on GitHub ↗

ReadFBClockDataV2 reads the primary anchor section. Used in tests only.

(shmp unsafe.Pointer)

Source from the content-addressed store, hash-verified

267
268// ReadFBClockDataV2 reads the primary anchor section. Used in tests only.
269func ReadFBClockDataV2(shmp unsafe.Pointer) (*DataV2, error) {
270 base := (*[shmDataV2Size]byte)(shmp)[:]
271 buf, err := loadSeqlockSection(base, shmV2PrimarySeqOff, shmV2SectionDataLen)
272 if err != nil {
273 return nil, err
274 }
275 return readClockDataV2(buf), nil
276}
277
278// ReadFBClockDataRealtime reads the realtime anchor section. Used in tests only.
279func ReadFBClockDataRealtime(shmp unsafe.Pointer) (*DataV2, error) {

Callers

nothing calls this directly

Calls 2

loadSeqlockSectionFunction · 0.85
readClockDataV2Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…