SWIG & C# - Default typemap to handle "unsigned char *" as array going strange
I started using SWIG to wrap a C++ library, in order to use it in C#.
I am playing arround with typemaps, in order to get rid of all the SWIGTYPE_* class (which I understand are created because did'nt know how to wrap a certain type.
Anyway, I am having trouble with a simple typemap. I have multiple methods that return unsigned char * in C++, which need to be consider as unsigned char arrays. I found in "array_csharp.i" that there are multiple ways to handle this situation. I tried them all but I never get the correct result like the example in the doc.