Module native_lib

Module native_lib 

Source
Expand description

Implements calling functions from a native library.

Modules§

trace

Structs§

AccessRange
The memory touched by a given access.
LibffiClosureData 🔒
The data passed to the closure shim function used to intercept function pointer calls from native code.
MemEvents
The final results of an FFI trace, containing every relevant event detected by the tracer.
OwnedArg
An argument for an FFI call.

Enums§

AccessEvent
A single memory access.

Traits§

EvalContextExt
EvalContextExtPriv 🔒

Functions§

build_libffi_closure
This function sets up a new libffi closure to intercept calls to rust code via function pointers passed to native code.
libffi_closure_callback 🔒
A shim function to intercept calls back from native code into the interpreter via function pointers passed to the native code.