MCPcopy Index your code
hub / github.com/Binject/universal / Call

Method Call

loader_linux.go:64–71  ·  view source on GitHub ↗

Call - call a function in a loaded library

(functionName string, args ...uintptr)

Source from the content-addressed store, hash-verified

62
63// Call - call a function in a loaded library
64func (l *Library) Call(functionName string, args ...uintptr) (uintptr, error) {
65 proc, ok := l.FindProc(functionName)
66 if !ok {
67 return 0, errors.New("Call did not find export " + functionName)
68 }
69 val, err := cdecl.Call(proc, args...)
70 return val, err
71}

Callers 8

Test_Linux_1Function · 0.45
Test_Linux_2Function · 0.45
Test_Darwin_arm64_1Function · 0.45
Test_Darwin_arm64_2Function · 0.45
Test_Windows_gcc_4Function · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

FindProcMethod · 0.95

Tested by 5

Test_Linux_1Function · 0.36
Test_Linux_2Function · 0.36
Test_Darwin_arm64_1Function · 0.36
Test_Darwin_arm64_2Function · 0.36
Test_Windows_gcc_4Function · 0.36