原因是设的内存长度不足,
指针长度的公式是(String.length + 1) * Native.WCHAR_SIZE
new Memory(json.length() + 1); // old
new Memory((json.length() + 1) * Native.WCHAR_SIZE); // new
原因是设的内存长度不足,
指针长度的公式是(String.length + 1) * Native.WCHAR_SIZE
new Memory(json.length() + 1); // old
new Memory((json.length() + 1) * Native.WCHAR_SIZE); // new