示例#1
0
 public static string ConvertToString(byte[] data)
 {
     if (data == null)
     {
         return(string.Empty);
     }
     return(ZipConstants.ConvertToString(data, data.Length));
 }
示例#2
0
 public static string ConvertToStringExt(int flags, byte[] data)
 {
     if (data == null)
     {
         return(string.Empty);
     }
     if ((flags & 2048) != 0)
     {
         return(Encoding.UTF8.GetString(data, 0, data.Length));
     }
     return(ZipConstants.ConvertToString(data, data.Length));
 }