pub fn decode_byte_array( env: &mut JNIEnv<'_>, payload: &JPrimitiveArray<'_, i8>, ) -> Result<Vec<u8>, String>
Converts a JNI JByteArray into a Rust Vec<u8>.
JByteArray
Vec<u8>