more info:
I have a c++ function declared as
unsigned char** classify
I am using the following inteface file in SWIG
Code:
%module PWrap
%include "std_string.i"
%include "arrays_java.i"
%apply byte[][] {unsigned char**};
%{
#include "Classifier.h"
%}
%include "Classifier.h"
which generated some files, including a SWIGTYPE_p_p_unsigned_char object
Now, heres where I try to use this C++ function in java:
Code:
SWIGTYPE_p_p_unsigned_char data = pc.classify();//this works, but i cant do anything with the data object execept pass it to other C++ functions expecting unsigned char**
byte[][] data2 =pc.classify();//this does not work
So I really just need to know how to do the mapping to get that SWIGTYPE out of there, and be able to use btye correctly