We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 192cc37 commit f6fa459Copy full SHA for f6fa459
src/main/java/com/mt1006/mocap/mocap/files/RecordingFiles.java
@@ -216,8 +216,9 @@ public void addBoolean(boolean val)
216
217
public void addString(String val)
218
{
219
- addInt(val.length());
220
- for (byte b : val.getBytes(StandardCharsets.UTF_8))
+ byte[] bytes = val.getBytes(StandardCharsets.UTF_8);
+ addInt(bytes.length);
221
+ for (byte b : bytes)
222
223
recording.add(b);
224
}
0 commit comments