Beispiel #1
0
 public ArrayByte(string base64)
 {
     if (!Base64Coder.IsBase64(base64))
     {
         throw new LSysException("it is not base64 :" + base64);
     }
     this.data = Base64Coder.DecodeBase64(base64.ToCharArray());
     Reset();
 }
Beispiel #2
0
        public static bool IsArrayByteBase64(sbyte[] bytes)
        {
            Checking();
            int length = bytes.Length;

            if (length == 0)
            {
                return(true);
            }
            for (int i = 0; i < length; i++)
            {
                if (!Base64Coder.IsBase64(bytes[i]))
                {
                    return(false);
                }
            }
            return(true);
        }
Beispiel #3
0
 public override string ToString()
 {
     return(new JavaString(CharUtils.ToUNBytes(Base64Coder.Encode(data))).ToString());
 }