This commit is contained in:
1 parent
089ac3ce85
commit
6b5756a1c1
4 files changed
+35
-35
No files matched your search
@@ -128,8 +128,8 @@ namespace Elwig.Helpers {
|
||||
public static async Task CheckIntegrity(this ZipArchive zip, ReadOnlyMemory<char> password = default) {
|
||||
byte[] buffer = new byte[8192];
|
||||
foreach (var entry in zip.Entries) {
|
||||
using var stream = entry.Open(password.Span);
|
||||
while (stream.Read(buffer) > 0);
|
||||
using var stream = await entry.OpenAsync(password.Span);
|
||||
while (await stream.ReadAsync(buffer) > 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user