1042
1041
for (int i = 0; i < strlength; i++) {
1043
1042
int c = parseCall(args[2 + i], null, Integer.class);
1043
PluginDebug.debug("char ", i, " ", c);
1046
1045
byteArray[2 * i] = (byte) (c & 0x0ff);
1048
1047
byteArray[2 * i + 1] = (byte) ((c >> 8) & 0x0ff);
1050
1049
ret = new String(byteArray, 0, bytelength, "UTF-16LE");
1054
1053
write(reference, "NewString " + store.getIdentifier(ret));
1056
1055
} else if (message.startsWith("ExceptionOccurred")) {
1059
1058
store.reference(throwable);
1060
1059
write(reference, "ExceptionOccurred "