From a615545adca465011dd3b215371482547a84e393 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 1 Aug 2017 00:53:36 +0200 Subject: [PATCH] Made it clear that charToBytes returns UTF16. --- src/dorkbox/util/Sys.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dorkbox/util/Sys.java b/src/dorkbox/util/Sys.java index 4065ee7..7d25ff3 100644 --- a/src/dorkbox/util/Sys.java +++ b/src/dorkbox/util/Sys.java @@ -297,7 +297,7 @@ class Sys { */ @SuppressWarnings("NumericCastThatLosesPrecision") public static - byte[] charToBytes(char[] text) { + byte[] charToBytes16(char[] text) { // NOTE: this saves the char array in UTF-16 format of bytes. byte[] bytes = new byte[text.length * 2]; for (int i = 0; i < text.length; i++) {