Add comment for non-const version
This commit is contained in:
parent
575b250b24
commit
300fc6f669
1 changed files with 1 additions and 0 deletions
|
|
@ -1394,6 +1394,7 @@ SWIG_PROXY_CONSTRUCTOR(true, true, SWIGTYPE)
|
||||||
}
|
}
|
||||||
%typemap(javadirectorin, descriptor="[B") (const char *STRING, size_t LENGTH) "$jniinput"
|
%typemap(javadirectorin, descriptor="[B") (const char *STRING, size_t LENGTH) "$jniinput"
|
||||||
%apply (const char *STRING, size_t LENGTH) { (char *STRING, size_t LENGTH) }
|
%apply (const char *STRING, size_t LENGTH) { (char *STRING, size_t LENGTH) }
|
||||||
|
/* Enable write-back for non-const version */
|
||||||
%typemap(argout) (char *STRING, size_t LENGTH) {
|
%typemap(argout) (char *STRING, size_t LENGTH) {
|
||||||
if ($input) JCALL3(ReleaseByteArrayElements, jenv, $input, (jbyte *)$1, 0);
|
if ($input) JCALL3(ReleaseByteArrayElements, jenv, $input, (jbyte *)$1, 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue