ddl.ar.ArchiveLoader

Authors:
Lars Ivar Igesund, Eric Anderton

License:
BSD Derivative (see source for details)

class ArchiveLoader: ddl.DynamicLibraryLoader.DynamicLibraryLoader;
An implementation of the abstract class DynamicLibraryLoader for use with archive files in the Ar format. In general, archive files can hold all types of files, but for use in DDL, only archives of ELF object files and COFF library files are handled.

bool canLoadLibrary(FileBuffer file);
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.