How to define swig typemap for returning unsigned char* back to java
问题 I have a Java Application that calls a c library for performing crypto functions. This is a custom library implemented in c that we need to use from some Java programs. I need a way to define a SWIG typemap that will allow me call a function passing bytearray from Java and treat it as an unsigned character pointer in C function where c function fills data and returns it to java Excerpt of my present unhappy interface file is as follows %module CryptoFacade %pointer_functions(int, intp);