DynamicLibrary class
Represents a dynamically loaded C library.
- Available Extensions
Constructors
- DynamicLibrary.executable() factory
- Creates a dynamic library representing the running executable.
- DynamicLibrary.open(String name) factory
- Loads a dynamic library file with local visibility. [...]
- DynamicLibrary.process() factory
- Creates a dynamic library holding all global symbols. [...]
Properties
- handle → Pointer<
Void> read-only - The handle to the dynamic library.
- hashCode → int read-only, override
- The hash code for a DynamicLibrary only depends on the loaded library
- runtimeType → Type read-only, inherited
- A representation of the runtime type of the object.
Methods
- lookup<
T extends NativeType> (String symbolName) → Pointer< T> - Looks up a symbol in the DynamicLibrary and returns its address in memory. Equivalent of dlsym. [...]
- noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed. [...]
- toString(
) → String inherited - A string representation of this object. [...]
Operators
- operator ==(
Object other) → bool override - Dynamic libraries are equal if they load the same library.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-ffi/DynamicLibrary-class.html