ReadFBClockDataV2 reads the primary anchor section. Used in tests only.
(shmp unsafe.Pointer)
| 267 | |
| 268 | // ReadFBClockDataV2 reads the primary anchor section. Used in tests only. |
| 269 | func 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. |
| 279 | func ReadFBClockDataRealtime(shmp unsafe.Pointer) (*DataV2, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…