LoadLibrary - loads a library into this process from the given buffer
(name string, image *[]byte)
| 19 | |
| 20 | // LoadLibrary - loads a library into this process from the given buffer |
| 21 | func (l *Loader) LoadLibrary(name string, image *[]byte) (*Library, error) { |
| 22 | |
| 23 | library, err := LoadLibraryImpl(name, image) |
| 24 | if err != nil { |
| 25 | return nil, err |
| 26 | } |
| 27 | library.Name = name |
| 28 | l.Libraries = append(l.Libraries, library) |
| 29 | return library, nil |
| 30 | } |
| 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) { |