FindProc - returns the address of the given function from the given library
(libname string, funcname string)
| 31 | |
| 32 | // FindProc - returns the address of the given function from the given library |
| 33 | func (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 |
| 44 | func (l *Library) FindProc(funcname string) (uintptr, bool) { |
no outgoing calls