Skip to main content

run_sample

Function run_sample 

Source
#[unsafe(no_mangle)]
pub extern "C" fn run_sample() -> i32
Expand description

Runs the sample loaded last and keeps its output. Answers the output’s length in bytes, or -1 if no sample is loaded or the sample threw.