MCPcopy Create free account
hub / github.com/Binject/universal / FindProc

Method FindProc

universal.go:33–41  ·  view source on GitHub ↗

FindProc - returns the address of the given function from the given library

(libname string, funcname string)

Source from the content-addressed store, hash-verified

31
32// FindProc - returns the address of the given function from the given library
33func (l *Loader) FindProc(libname string, funcname string) (uintptr, bool) {
34
35 for _, lib := range l.Libraries {
36 if lib.Name == libname {
37 return lib.FindProc(funcname)
38 }
39 }
40 return 0, false
41}
42
43// FindProc - returns the address of the given function in this library
44func (l *Library) FindProc(funcname string) (uintptr, bool) {

Callers 4

Test_Windows_gcc_2Function · 0.95
Test_Linux_1Function · 0.45
Test_Darwin_arm64_1Function · 0.45
Test_Windows_gcc_3Function · 0.45

Calls

no outgoing calls

Tested by 4

Test_Windows_gcc_2Function · 0.76
Test_Linux_1Function · 0.36
Test_Darwin_arm64_1Function · 0.36
Test_Windows_gcc_3Function · 0.36