C# Class OpenCvSharp.Util.WindowsLibraryLoader

Handles loading embedded dlls into memory, based on http://stackoverflow.com/questions/666799/embedding-unmanaged-dll-into-a-managed-c-sharp-dll.
This code is based on https://github.com/charlesw/tesseract
Exibir arquivo Open project: shimat/opencvsharp

Public Methods

Method Description
IsCurrentPlatformSupported ( ) : bool

IsLibraryLoaded ( string dllName ) : bool

LoadLibrary ( string dllName, IEnumerable additionalPaths = null ) : void

Private Methods

Method Description
FixUpDllFileName ( string fileName ) : string

Determines if the dynamic link library file name requires a suffix and adds it if necessary.

GetPlatformName ( string processorArchitecture ) : string

Given the processor architecture, returns the name of the platform.

GetProcessArchitecture ( ) : ProcessArchitectureInfo

Get's the current process architecture while keeping track of any assumptions or possible errors.

LoadLibraryInternal ( string dllName, string baseDirectory, ProcessArchitectureInfo processArchInfo ) : IntPtr
LoadLibraryRaw ( string dllName, string baseDirectory ) : IntPtr
Win32LoadLibrary ( string dllPath ) : IntPtr
WindowsLibraryLoader ( ) : System

constructor

Method Details

IsCurrentPlatformSupported() public method

public IsCurrentPlatformSupported ( ) : bool
return bool

IsLibraryLoaded() public method

public IsLibraryLoaded ( string dllName ) : bool
dllName string
return bool

LoadLibrary() public method

public LoadLibrary ( string dllName, IEnumerable additionalPaths = null ) : void
dllName string
additionalPaths IEnumerable
return void