• Post Reply Bookmark Topic Watch Topic
  • New Topic

How access and create multi-dimensional arrays for JNI?  RSS feed

 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that to access an array I use "Get<type>ArrayElements". What if it's an array of arrays of arrays? Like int[][][]? What do i do then?


And for example, what if I have the following java method:



and in C++, I have the following arrays filled:



How would I convert those to the parameters necessary to call the method "doSomething" from JNI?

[ November 13, 2006: Message edited by: Dan Bizman ]
[ November 13, 2006: Message edited by: Dan Bizman ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!