public static string ConvertToString(byte[] data) { if (data == null) { return(string.Empty); } return(ZipConstants.ConvertToString(data, data.Length)); }
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)); }