/** * Convert an array of characters to an array of bytes using UTF8 encoding. * * @param chars Array of characters * @return Byte array */ @NotNull public static byte[] toBytes(@NotNull char[] chars) { return toBytes(chars, false); }
/** * Convert an array of characters to an array of bytes using UTF8 encoding. * * @param chars Array of characters * @return Byte array */ @NotNull public static byte[] toBytes(@NotNull char[] chars) { return toBytes(chars, false); }