Reputation: 765
I receive a structure containing the SWIGTYPE_p_unsigned_char in a function and I want to print this value
@Override
public newRs1Param sendOk(newRs1Param sas) {
System.out.println(sas.getIdentifier());
return sas;
}
with this code. But this gives to me the error:
org.pjsip.pjsua2.SWIGTYPE_p_unsigned_char@4279be40
How can I solve this? Thanks!!
Upvotes: 2
Views: 564
Reputation: 2167
if this unsigned char * should be threaten like string, you can just reuse char * typemap
%apply char * { unsigned char * };
Upvotes: 2