Class Tic

    • Method Detail

      • string2byte

        public static byte[] string2byte​(String s)
        Turn String into byte array with closing zero.
        Parameters:
        s - the input string
        Returns:
        byte array with closing zero byte
      • byte2string

        public static String byte2string​(byte[] b)
        Turn byte array with closing zero into String.
        Parameters:
        b - the byte array with closing zero byte
        Returns:
        String without closing zero