refactor: use easier to read string decode

This commit is contained in:
Connor Tumbleson 2020-11-28 12:42:50 -05:00 committed by Connor Tumbleson
parent db70927699
commit 2eac0339b4

View File

@ -94,15 +94,15 @@ public class StringBlock {
int offset = m_stringOffsets[index];
int length;
int[] val;
if (m_isUTF8) {
int[] val = getUtf8(m_strings, offset);
val = getUtf8(m_strings, offset);
offset = val[0];
length = val[1];
} else {
int[] val = getUtf16(m_strings, offset);
val = getUtf16(m_strings, offset);
offset += val[0];
length = val[1];
}
length = val[1];
return decodeString(offset, length);
}