ket::c_api::objects

Function ket_process_get_exp_value

Source
#[no_mangle]
pub extern "C" fn ket_process_get_exp_value(
    process: &Process,
    index: usize,
    available: &mut bool,
    result: &mut f64,
) -> i32
Expand description

Retrieves the expected value from the Process instance.

§Arguments

  • process - [in] A reference to the Process instance.
  • index - [in] The index of the expected value to query.
  • available - [out] A mutable pointer to a bool indicating if the result is available.
  • result - [out] A mutable pointer to a f64 storing the expected value.

§Returns

An integer representing the error code. 0 indicates success.