mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-04-05 21:51:09 +00:00
fixes .net 4.8 build for WinzipAesCryptoStream tests
This commit is contained in:
@@ -242,7 +242,11 @@ public class WinzipAesCryptoStreamTests
|
||||
chunkPattern[chunkIndex % chunkPattern.Length],
|
||||
totalLength - offset
|
||||
);
|
||||
#if NET48
|
||||
int bytesRead = await stream.ReadAsync(actual, offset, requested);
|
||||
#else
|
||||
int bytesRead = await stream.ReadAsync(actual.AsMemory(offset, requested));
|
||||
#endif
|
||||
Assert.True(bytesRead > 0);
|
||||
offset += bytesRead;
|
||||
chunkIndex++;
|
||||
|
||||
Reference in New Issue
Block a user