Пример #1
0
        public static async Task <string> ReadStringAsync(this IEntryReader entry, Encoding encoding)
        {
            using (var stream = entry.Open()) {
                var bytes = await stream.ToArrayAsync();

                return(encoding.GetString(bytes));
            }
        }
Пример #2
0
 public static async Task <string> GetSHA512Async(this IEntryReader entry)
 {
     using (var stream = entry.Open()) {
         return(await stream.GetSHA512Async());
     }
 }
Пример #3
0
 public static string GetSHA512(this IEntryReader entry)
 {
     using (var stream = entry.Open()) {
         return(stream.GetSHA512());
     }
 }