Skip to main content

call_sample

Function call_sample 

Source
#[unsafe(no_mangle)]
pub extern "C" fn call_sample(input: f64) -> i32
Expand description

Calls the sample loaded last with input and keeps the text of its answer for output_byte. Answers the text’s length in bytes where the call returned, -1 - length where it threw, and i32::MIN if no sample is loaded.