memflow-ffi 0.2.0

C bindings for the memflow physical memory introspection framework
Documentation
1
2
3
4
5
6
7
8
9
10
use log::error;

pub fn inspect_err<E: std::fmt::Display>(e: E) -> E {
    error!("{}", e);
    e
}

pub fn to_heap<T>(a: T) -> &'static mut T {
    Box::leak(Box::new(a))
}