Issue
The only way I see to do it is getting a reference to do jstring as described here, then GetStringCritical, and using it as a u16string (so any other strings acting upon it should be u16string as well).
But I'm not sure that will work since it doesn't seem certain that GetStringCritical will return a pointer to the original (it's possible it will create a copy).
The posts I found about this are relatively old, I'm wondering whether there is a better way to do this, or maybe now all modern platforms do not create a copy when using GetStringCritical?
Solution
Strings in Java are immutable by design. They can't change, and finding some hack to do so via C would probably break things if possible.
Answered By - Gabe Sechan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.