ReadFBClockDataRealtime reads the realtime anchor section. Used in tests only.
(shmp unsafe.Pointer)
| 291 | |
| 292 | // ReadFBClockDataRealtime reads the realtime anchor section. Used in tests only. |
| 293 | func ReadFBClockDataRealtime(shmp unsafe.Pointer) (*DataV2, error) { |
| 294 | cData := &C.fbclock_clockdata_v2{} |
| 295 | shmpData := (*C.fbclock_shmdata_v2)(shmp) |
| 296 | res := C.fbclock_clockdata_load_data_realtime(shmpData, cData) |
| 297 | if res != 0 { |
| 298 | return nil, fmt.Errorf("failed to load realtime data: %s", strerror(res)) |
| 299 | } |
| 300 | return clockDataV2FromC(cData), nil |
| 301 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…