DynamicLibrary class

A dynamically loaded native library.

A dynamically loaded library is a mapping from symbols to memory addresses. These memory addresses can be accessed through lookup.

Available Extensions

Constructors

DynamicLibrary.executable()
Creates a DynamicLibrary containing all the symbols of the running executable.
factory
DynamicLibrary.open(String path)
Loads a library file and provides access to its symbols.
factory
DynamicLibrary.process()
Creates a DynamicLibrary holding all global symbols.
factory

Properties

handle Pointer<Void>
The opaque handle to the dynamic library.
read-only
hashCode int
The hash code for a DynamicLibrary only depends on the loaded library.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

lookup<T extends NativeType>(String symbolName) Pointer<T>
Looks up a symbol in the DynamicLibrary and returns its address in memory.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
providesSymbol(String symbolName) bool
Checks whether this dynamic library provides a symbol with the given name.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Dynamic libraries are equal if they load the same library.
override