Skip to main content

prebindgen_jni_runtime/
lib.rs

1//! Runtime half of the JNI binding generator.
2//!
3//! `prebindgen`'s `lang::JniGen` adapter *generates* JNI binding code at
4//! build time; the helpers in this crate are what that generated code
5//! *calls* at run time. A shipped binding library depends on this crate,
6//! not on the generator.
7
8mod box_helpers;
9mod byte_array_helpers;
10mod iface_method;
11mod jni_binding_error;
12mod string_helpers;
13
14pub use box_helpers::{
15    box_jboolean, box_jbyte, box_jchar, box_jdouble, box_jfloat, box_jint, box_jlong, box_jshort,
16};
17pub use byte_array_helpers::{decode_byte_array, encode_byte_array, null_byte_array};
18pub use iface_method::CachedIfaceMethod;
19pub use jni_binding_error::JniBindingError;
20pub use string_helpers::{decode_string, encode_string, null_string};