Skip to main content

run_native_pe_inprocess

Function run_native_pe_inprocess 

Source
pub fn run_native_pe_inprocess(program: &str) -> Result<String, String>
Expand description

Specialize program on the compile-once native PE, IN PROCESS: marshal it to wire bytes, hand them to the dlopened PE cdylib’s logos_pe_specialize as a plain function call, and reclaim the residual bytes. No child process, no pipe — the ~59 µs IPC round-trip of the resident server is gone; all that remains is the host marshal + native peBlock + one FFI call. The cdylib is built + loaded ONCE per thread and cached. Residual-identity with the server / tree-walker is locked by native_pe_wire.