ddl.DynamicLibraryLoader

Provides DynamicLibrary loading support.

Authors:
Eric Anderton

License:
BSD Derivative (see source for details)

class DynamicLibraryLoader;
Base class for all dynamic library loaders.

char[] getLibraryType();
Returns:
the type for this library.

bool canLoadLibrary(FileBuffer file);
The implementaiton is understood to check the file by inspecting its contents. The implementor must be sure to not advance the internal buffer pointer, so that future checks against the buffer can all begin at the same location.

Returns:
true if the file can be loaded by this loader, false if it cannot.

DynamicLibrary load(LoaderRegistry registry, FileBuffer file);
Loads a binary file.

Returns:
the library stored in the provided file.

FileBuffer file the file that contains the binary library data.