MCPcopy
hub / github.com/uber/aresdb / doCGoCall

Function doCGoCall

query/time_series_aggregate.go:741–746  ·  view source on GitHub ↗

doCGoCall does the cgo call by converting CGoCallResHandle to C.int and *C.char and calls doCGoCall. The reason to have this wrapper is because CGo types are bound to package name, thereby even C.int are different types under different packages.

(f func() C.CGoCallResHandle)

Source from the content-addressed store, hash-verified

739// The reason to have this wrapper is because CGo types are bound to package name, thereby even C.int are different types
740// under different packages.
741func doCGoCall(f func() C.CGoCallResHandle) uintptr {
742 return cgoutils.DoCGoCall(func() (uintptr, unsafe.Pointer) {
743 ret := f()
744 return uintptr(ret.res), unsafe.Pointer(ret.pStrErr)
745 })
746}
747
748// bootstrapDevice is the go wrapper of BootstrapDevice. It will panic and crash the server if any exceptions are thrown
749// in this function.

Callers 12

filterActionMethod · 0.70
writeGeoShapeDimMethod · 0.70
geoIntersectMethod · 0.70
hllMethod · 0.70
sortByKeyMethod · 0.70
reduceByKeyMethod · 0.70
hashReduceMethod · 0.70
expandMethod · 0.70
bootstrapDeviceFunction · 0.70

Calls 1

DoCGoCallFunction · 0.92

Tested by

no test coverage detected