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)); } }
public static async Task <string> GetSHA512Async(this IEntryReader entry) { using (var stream = entry.Open()) { return(await stream.GetSHA512Async()); } }
public static string GetSHA512(this IEntryReader entry) { using (var stream = entry.Open()) { return(stream.GetSHA512()); } }