macro_rules! load_dylib {
($name:expr) => { ... };
($name:expr, $bytes:expr) => { ... };
($name:expr, $bytes:expr, lazy : $lazy:expr) => { ... };
($name:expr, lazy : $lazy:expr) => { ... };
}Expand description
Load a dynamic library into memory
ยงExample
// from file
let liba = load_dylib!("target/liba.so");
// from memory
let liba = load_dylib!("liba.so", &bytes);