flapigen 0.11.0

Tool for connecting libraries written in Rust with other languages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
r##"#[unsafe(no_mangle)]
pub extern "C" fn Java_org_example_Foo_do_1f7(
    env: *mut JNIEnv,
    _: jclass,
    this: jlong,
    a0: internal_aliases::JStringOptStr,
) -> () {
    let tmp: String;
    let mut a0: Option<&str> = if !a0.is_null() {
        tmp = from_jstring_std_string(a0, env);
        Some(tmp.as_str())
    } else {
        None
    };
    let this: &Foo = unsafe { jlong_to_pointer::<Foo>(this).as_mut().unwrap() };
    let mut ret: () = Foo::f7(this, a0);
    ret
}"##;