Implement a char array print through JNI call.
Native method interface
/** * native method type * @param params : input and output * @return : > 0 n output has stored into params * : = 0 don't have any output parameters. this meaning void method * : < 0 method execute error */ typedef int16 (*native_method_t)(int32 params[]);
Array structure
struct reference_t { union { struct class_file_t* clazz; int32 atype; } type; uint16 reference_counter; uint16 size; // 1 if is multi array int16 flags; int16 locks; union { int8 int8_value[1]; uint8 uint8_value[1]; int16 int16_value[1]; uint16 uint16_value[1]; int32 int32_value[1]; uint32 uint32_value[1]; int8* int8_pointer[1]; uint8* uint8_pointer[1]; int16* int16_pointer[1]; uint16* uint16_pointer[1]; int32* int32_pointer[1]; uint32* uint32_pointer[1]; } value; };