سؤال

I don't have much experience in C++. I'd like to know is it possible to convert System::Collections::Generic::List<cli::array<unsigned char>^>^ into a jObject. My requirement is to pass a jObject to Java from JNI native code. If this impossible, is there any workaround?

هل كانت مفيدة؟

المحلول

It isn't possible to cast, as per your title, but you can convert it, by wrapping it in Java byte array, via NewByteArray(), and populating it with SetByteArrayRegion().

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top