NSAmelchev commented on code in PR #12717:
URL: https://github.com/apache/ignite/pull/12717#discussion_r2787731152


##########
modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java:
##########
@@ -3625,6 +3625,41 @@ public static void writeLongArray(DataOutput out, 
@Nullable long[] arr) throws I
         return res;
     }
 
+    /**
+     * @param out Output stream to write to.
+     * @param arr Array to write, possibly <tt>null</tt>.
+     * @throws IOException If write failed.
+     */
+    public static void writeCharArray(DataOutput out, char[] arr) throws 
IOException {
+        if (arr == null)
+            out.writeInt(-1);
+        else {
+            out.writeInt(arr.length);
+
+            for (int c : arr)
+                out.writeChar(c);
+        }
+    }
+
+    /**
+     * @param in Stream to read from.
+     * @return Read byte array, possibly <tt>null</tt>.

Review Comment:
   ```suggestion
        * @return Read char array, possibly <tt>null</tt>.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to