示例#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());
     }
 }